var vc=e=>{throw TypeError(e)};var al=(e,t,n)=>t.has(e)||vc("Cannot "+n);var P=(e,t,n)=>(al(e,t,"read from private field"),n?n.call(e):t.get(e)),q=(e,t,n)=>t.has(e)?vc("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),$=(e,t,n,r)=>(al(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Ee=(e,t,n)=>(al(e,t,"access private method"),n);var mi=(e,t,n,r)=>({set _(o){$(e,t,o,n)},get _(){return P(e,t,r)}});function Rg(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function bf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var kf={exports:{}},js={},Pf={exports:{}},Y={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var oi=Symbol.for("react.element"),jg=Symbol.for("react.portal"),Og=Symbol.for("react.fragment"),Ag=Symbol.for("react.strict_mode"),_g=Symbol.for("react.profiler"),Lg=Symbol.for("react.provider"),Mg=Symbol.for("react.context"),Ig=Symbol.for("react.forward_ref"),zg=Symbol.for("react.suspense"),Dg=Symbol.for("react.memo"),Fg=Symbol.for("react.lazy"),yc=Symbol.iterator;function $g(e){return e===null||typeof e!="object"?null:(e=yc&&e[yc]||e["@@iterator"],typeof e=="function"?e:null)}var Tf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Nf=Object.assign,Rf={};function to(e,t,n){this.props=e,this.context=t,this.refs=Rf,this.updater=n||Tf}to.prototype.isReactComponent={};to.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};to.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function jf(){}jf.prototype=to.prototype;function Ja(e,t,n){this.props=e,this.context=t,this.refs=Rf,this.updater=n||Tf}var eu=Ja.prototype=new jf;eu.constructor=Ja;Nf(eu,to.prototype);eu.isPureReactComponent=!0;var wc=Array.isArray,Of=Object.prototype.hasOwnProperty,tu={current:null},Af={key:!0,ref:!0,__self:!0,__source:!0};function _f(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)Of.call(t,r)&&!Af.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1>>1,D=T[W];if(0>>1;Wo(he,M))Peo(J,he)?(T[W]=J,T[Pe]=M,W=Pe):(T[W]=he,T[X]=M,W=X);else if(Peo(J,M))T[W]=J,T[Pe]=M,W=Pe;else break e}}return R}function o(T,R){var M=T.sortIndex-R.sortIndex;return M!==0?M:T.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var a=[],u=[],c=1,f=null,m=3,d=!1,E=!1,v=!1,w=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(T){for(var R=n(u);R!==null;){if(R.callback===null)r(u);else if(R.startTime<=T)r(u),R.sortIndex=R.expirationTime,t(a,R);else break;R=n(u)}}function S(T){if(v=!1,g(T),!E)if(n(a)!==null)E=!0,B(C);else{var R=n(u);R!==null&&V(S,R.startTime-T)}}function C(T,R){E=!1,v&&(v=!1,h(N),N=-1),d=!0;var M=m;try{for(g(R),f=n(a);f!==null&&(!(f.expirationTime>R)||T&&!F());){var W=f.callback;if(typeof W=="function"){f.callback=null,m=f.priorityLevel;var D=W(f.expirationTime<=R);R=e.unstable_now(),typeof D=="function"?f.callback=D:f===n(a)&&r(a),g(R)}else r(a);f=n(a)}if(f!==null)var K=!0;else{var X=n(u);X!==null&&V(S,X.startTime-R),K=!1}return K}finally{f=null,m=M,d=!1}}var b=!1,k=null,N=-1,L=5,A=-1;function F(){return!(e.unstable_now()-AT||125W?(T.sortIndex=M,t(u,T),n(a)===null&&T===n(u)&&(v?(h(N),N=-1):v=!0,V(S,M-W))):(T.sortIndex=D,t(a,T),E||d||(E=!0,B(C))),T},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(T){var R=m;return function(){var M=m;m=R;try{return T.apply(this,arguments)}finally{m=M}}}})(Ff);Df.exports=Ff;var qg=Df.exports;/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Zg=x,Ze=qg;function j(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Bl=Object.prototype.hasOwnProperty,Jg=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Sc={},Ec={};function ev(e){return Bl.call(Ec,e)?!0:Bl.call(Sc,e)?!1:Jg.test(e)?Ec[e]=!0:(Sc[e]=!0,!1)}function tv(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function nv(e,t,n,r){if(t===null||typeof t>"u"||tv(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ie(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var ke={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ke[e]=new Ie(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ke[t]=new Ie(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ke[e]=new Ie(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ke[e]=new Ie(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ke[e]=new Ie(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ke[e]=new Ie(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ke[e]=new Ie(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ke[e]=new Ie(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ke[e]=new Ie(e,5,!1,e.toLowerCase(),null,!1,!1)});var ru=/[\-:]([a-z])/g;function ou(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(ru,ou);ke[t]=new Ie(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(ru,ou);ke[t]=new Ie(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ru,ou);ke[t]=new Ie(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ke[e]=new Ie(e,1,!1,e.toLowerCase(),null,!1,!1)});ke.xlinkHref=new Ie("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ke[e]=new Ie(e,1,!1,e.toLowerCase(),null,!0,!0)});function iu(e,t,n,r){var o=ke.hasOwnProperty(t)?ke[t]:null;(o!==null?o.type!==0:r||!(2l||o[s]!==i[l]){var a=` `+o[s].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=s&&0<=l);break}}}finally{dl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?xo(e):""}function rv(e){switch(e.tag){case 5:return xo(e.type);case 16:return xo("Lazy");case 13:return xo("Suspense");case 19:return xo("SuspenseList");case 0:case 2:case 15:return e=fl(e.type,!1),e;case 11:return e=fl(e.type.render,!1),e;case 1:return e=fl(e.type,!0),e;default:return""}}function Hl(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case yr:return"Fragment";case vr:return"Portal";case Ul:return"Profiler";case su:return"StrictMode";case Vl:return"Suspense";case Wl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Uf:return(e.displayName||"Context")+".Consumer";case Bf:return(e._context.displayName||"Context")+".Provider";case lu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case au:return t=e.displayName||null,t!==null?t:Hl(e.type)||"Memo";case un:t=e._payload,e=e._init;try{return Hl(e(t))}catch{}}return null}function ov(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Hl(t);case 8:return t===su?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function jn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Wf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function iv(e){var t=Wf(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function yi(e){e._valueTracker||(e._valueTracker=iv(e))}function Hf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Wf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ji(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Ql(e,t){var n=t.checked;return ce({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function bc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=jn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Qf(e,t){t=t.checked,t!=null&&iu(e,"checked",t,!1)}function Kl(e,t){Qf(e,t);var n=jn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Yl(e,t.type,n):t.hasOwnProperty("defaultValue")&&Yl(e,t.type,jn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function kc(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Yl(e,t,n){(t!=="number"||Ji(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var So=Array.isArray;function Rr(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=wi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Mo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var bo={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},sv=["Webkit","ms","Moz","O"];Object.keys(bo).forEach(function(e){sv.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),bo[t]=bo[e]})});function Xf(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||bo.hasOwnProperty(e)&&bo[e]?(""+t).trim():t+"px"}function qf(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Xf(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var lv=ce({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ql(e,t){if(t){if(lv[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(j(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(j(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(j(61))}if(t.style!=null&&typeof t.style!="object")throw Error(j(62))}}function Zl(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Jl=null;function uu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ea=null,jr=null,Or=null;function Nc(e){if(e=li(e)){if(typeof ea!="function")throw Error(j(280));var t=e.stateNode;t&&(t=Ms(t),ea(e.stateNode,e.type,t))}}function Zf(e){jr?Or?Or.push(e):Or=[e]:jr=e}function Jf(){if(jr){var e=jr,t=Or;if(Or=jr=null,Nc(e),t)for(e=0;e>>=0,e===0?32:31-(yv(e)/wv|0)|0}var xi=64,Si=4194304;function Eo(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function rs(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~o;l!==0?r=Eo(l):(i&=s,i!==0&&(r=Eo(i)))}else s=n&~o,s!==0?r=Eo(s):i!==0&&(r=Eo(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function ii(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-wt(t),e[t]=n}function Cv(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Po),zc=" ",Dc=!1;function wp(e,t){switch(e){case"keyup":return qv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var wr=!1;function Jv(e,t){switch(e){case"compositionend":return xp(t);case"keypress":return t.which!==32?null:(Dc=!0,zc);case"textInput":return e=t.data,e===zc&&Dc?null:e;default:return null}}function ey(e,t){if(wr)return e==="compositionend"||!vu&&wp(e,t)?(e=vp(),Bi=hu=wn=null,wr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Uc(n)}}function bp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?bp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function kp(){for(var e=window,t=Ji();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ji(e.document)}return t}function yu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function uy(e){var t=kp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&bp(n.ownerDocument.documentElement,n)){if(r!==null&&yu(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Vc(n,i);var s=Vc(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,xr=null,sa=null,No=null,la=!1;function Wc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;la||xr==null||xr!==Ji(r)||(r=xr,"selectionStart"in r&&yu(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),No&&Bo(No,r)||(No=r,r=ss(sa,"onSelect"),0Cr||(e.current=pa[Cr],pa[Cr]=null,Cr--)}function ne(e,t){Cr++,pa[Cr]=e.current,e.current=t}var On={},Oe=zn(On),$e=zn(!1),tr=On;function Kr(e,t){var n=e.type.contextTypes;if(!n)return On;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Be(e){return e=e.childContextTypes,e!=null}function as(){ie($e),ie(Oe)}function qc(e,t,n){if(Oe.current!==On)throw Error(j(168));ne(Oe,t),ne($e,n)}function Lp(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(j(108,ov(e)||"Unknown",o));return ce({},n,r)}function us(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||On,tr=Oe.current,ne(Oe,e),ne($e,$e.current),!0}function Zc(e,t,n){var r=e.stateNode;if(!r)throw Error(j(169));n?(e=Lp(e,t,tr),r.__reactInternalMemoizedMergedChildContext=e,ie($e),ie(Oe),ne(Oe,e)):ie($e),ne($e,n)}var $t=null,Is=!1,Pl=!1;function Mp(e){$t===null?$t=[e]:$t.push(e)}function Sy(e){Is=!0,Mp(e)}function Dn(){if(!Pl&&$t!==null){Pl=!0;var e=0,t=ee;try{var n=$t;for(ee=1;e>=s,o-=s,Ut=1<<32-wt(t)+o|n<N?(L=k,k=null):L=k.sibling;var A=m(h,k,g[N],S);if(A===null){k===null&&(k=L);break}e&&k&&A.alternate===null&&t(h,k),p=i(A,p,N),b===null?C=A:b.sibling=A,b=A,k=L}if(N===g.length)return n(h,k),le&&Un(h,N),C;if(k===null){for(;NN?(L=k,k=null):L=k.sibling;var F=m(h,k,A.value,S);if(F===null){k===null&&(k=L);break}e&&k&&F.alternate===null&&t(h,k),p=i(F,p,N),b===null?C=F:b.sibling=F,b=F,k=L}if(A.done)return n(h,k),le&&Un(h,N),C;if(k===null){for(;!A.done;N++,A=g.next())A=f(h,A.value,S),A!==null&&(p=i(A,p,N),b===null?C=A:b.sibling=A,b=A);return le&&Un(h,N),C}for(k=r(h,k);!A.done;N++,A=g.next())A=d(k,h,N,A.value,S),A!==null&&(e&&A.alternate!==null&&k.delete(A.key===null?N:A.key),p=i(A,p,N),b===null?C=A:b.sibling=A,b=A);return e&&k.forEach(function(z){return t(h,z)}),le&&Un(h,N),C}function w(h,p,g,S){if(typeof g=="object"&&g!==null&&g.type===yr&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case vi:e:{for(var C=g.key,b=p;b!==null;){if(b.key===C){if(C=g.type,C===yr){if(b.tag===7){n(h,b.sibling),p=o(b,g.props.children),p.return=h,h=p;break e}}else if(b.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===un&&td(C)===b.type){n(h,b.sibling),p=o(b,g.props),p.ref=mo(h,b,g),p.return=h,h=p;break e}n(h,b);break}else t(h,b);b=b.sibling}g.type===yr?(p=er(g.props.children,h.mode,S,g.key),p.return=h,h=p):(S=Gi(g.type,g.key,g.props,null,h.mode,S),S.ref=mo(h,p,g),S.return=h,h=S)}return s(h);case vr:e:{for(b=g.key;p!==null;){if(p.key===b)if(p.tag===4&&p.stateNode.containerInfo===g.containerInfo&&p.stateNode.implementation===g.implementation){n(h,p.sibling),p=o(p,g.children||[]),p.return=h,h=p;break e}else{n(h,p);break}else t(h,p);p=p.sibling}p=Ll(g,h.mode,S),p.return=h,h=p}return s(h);case un:return b=g._init,w(h,p,b(g._payload),S)}if(So(g))return E(h,p,g,S);if(uo(g))return v(h,p,g,S);Ni(h,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,p!==null&&p.tag===6?(n(h,p.sibling),p=o(p,g),p.return=h,h=p):(n(h,p),p=_l(g,h.mode,S),p.return=h,h=p),s(h)):n(h,p)}return w}var Gr=Fp(!0),$p=Fp(!1),fs=zn(null),ps=null,Pr=null,Eu=null;function Cu(){Eu=Pr=ps=null}function bu(e){var t=fs.current;ie(fs),e._currentValue=t}function ga(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function _r(e,t){ps=e,Eu=Pr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Fe=!0),e.firstContext=null)}function lt(e){var t=e._currentValue;if(Eu!==e)if(e={context:e,memoizedValue:t,next:null},Pr===null){if(ps===null)throw Error(j(308));Pr=e,ps.dependencies={lanes:0,firstContext:e}}else Pr=Pr.next=e;return t}var Hn=null;function ku(e){Hn===null?Hn=[e]:Hn.push(e)}function Bp(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,ku(t)):(n.next=o.next,o.next=n),t.interleaved=n,Kt(e,r)}function Kt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var cn=!1;function Pu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Up(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Wt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Pn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Z&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Kt(e,n)}return o=r.interleaved,o===null?(t.next=t,ku(r)):(t.next=o.next,o.next=t),r.interleaved=t,Kt(e,n)}function Vi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,du(e,n)}}function nd(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function hs(e,t,n,r){var o=e.updateQueue;cn=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var a=l,u=a.next;a.next=null,s===null?i=u:s.next=u,s=a;var c=e.alternate;c!==null&&(c=c.updateQueue,l=c.lastBaseUpdate,l!==s&&(l===null?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=a))}if(i!==null){var f=o.baseState;s=0,c=u=a=null,l=i;do{var m=l.lane,d=l.eventTime;if((r&m)===m){c!==null&&(c=c.next={eventTime:d,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var E=e,v=l;switch(m=t,d=n,v.tag){case 1:if(E=v.payload,typeof E=="function"){f=E.call(d,f,m);break e}f=E;break e;case 3:E.flags=E.flags&-65537|128;case 0:if(E=v.payload,m=typeof E=="function"?E.call(d,f,m):E,m==null)break e;f=ce({},f,m);break e;case 2:cn=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,m=o.effects,m===null?o.effects=[l]:m.push(l))}else d={eventTime:d,lane:m,tag:l.tag,payload:l.payload,callback:l.callback,next:null},c===null?(u=c=d,a=f):c=c.next=d,s|=m;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;m=l,l=m.next,m.next=null,o.lastBaseUpdate=m,o.shared.pending=null}}while(!0);if(c===null&&(a=f),o.baseState=a,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);or|=s,e.lanes=s,e.memoizedState=f}}function rd(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Nl.transition;Nl.transition={};try{e(!1),t()}finally{ee=n,Nl.transition=r}}function ih(){return at().memoizedState}function ky(e,t,n){var r=Nn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},sh(e))lh(t,n);else if(n=Bp(e,t,n,r),n!==null){var o=Le();xt(n,e,r,o),ah(n,t,r)}}function Py(e,t,n){var r=Nn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(sh(e))lh(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,l=i(s,n);if(o.hasEagerState=!0,o.eagerState=l,St(l,s)){var a=t.interleaved;a===null?(o.next=o,ku(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=Bp(e,t,o,r),n!==null&&(o=Le(),xt(n,e,r,o),ah(n,t,r))}}function sh(e){var t=e.alternate;return e===ue||t!==null&&t===ue}function lh(e,t){Ro=gs=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ah(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,du(e,n)}}var vs={readContext:lt,useCallback:Te,useContext:Te,useEffect:Te,useImperativeHandle:Te,useInsertionEffect:Te,useLayoutEffect:Te,useMemo:Te,useReducer:Te,useRef:Te,useState:Te,useDebugValue:Te,useDeferredValue:Te,useTransition:Te,useMutableSource:Te,useSyncExternalStore:Te,useId:Te,unstable_isNewReconciler:!1},Ty={readContext:lt,useCallback:function(e,t){return Pt().memoizedState=[e,t===void 0?null:t],e},useContext:lt,useEffect:id,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Hi(4194308,4,eh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Hi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Hi(4,2,e,t)},useMemo:function(e,t){var n=Pt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Pt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ky.bind(null,ue,e),[r.memoizedState,e]},useRef:function(e){var t=Pt();return e={current:e},t.memoizedState=e},useState:od,useDebugValue:Lu,useDeferredValue:function(e){return Pt().memoizedState=e},useTransition:function(){var e=od(!1),t=e[0];return e=by.bind(null,e[1]),Pt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ue,o=Pt();if(le){if(n===void 0)throw Error(j(407));n=n()}else{if(n=t(),Se===null)throw Error(j(349));rr&30||Qp(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,id(Yp.bind(null,r,i,e),[e]),r.flags|=2048,Go(9,Kp.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Pt(),t=Se.identifierPrefix;if(le){var n=Vt,r=Ut;n=(r&~(1<<32-wt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ko++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[jt]=t,e[Wo]=r,yh(e,t,!1,!1),t.stateNode=e;e:{switch(s=Zl(n,r),n){case"dialog":oe("cancel",e),oe("close",e),o=r;break;case"iframe":case"object":case"embed":oe("load",e),o=r;break;case"video":case"audio":for(o=0;oZr&&(t.flags|=128,r=!0,go(i,!1),t.lanes=4194304)}else{if(!r)if(e=ms(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),go(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!le)return Ne(t),null}else 2*pe()-i.renderingStartTime>Zr&&n!==1073741824&&(t.flags|=128,r=!0,go(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=pe(),t.sibling=null,n=ae.current,ne(ae,r?n&1|2:n&1),t):(Ne(t),null);case 22:case 23:return $u(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Qe&1073741824&&(Ne(t),t.subtreeFlags&6&&(t.flags|=8192)):Ne(t),null;case 24:return null;case 25:return null}throw Error(j(156,t.tag))}function My(e,t){switch(xu(t),t.tag){case 1:return Be(t.type)&&as(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Xr(),ie($e),ie(Oe),Ru(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Nu(t),null;case 13:if(ie(ae),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(j(340));Yr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ie(ae),null;case 4:return Xr(),null;case 10:return bu(t.type._context),null;case 22:case 23:return $u(),null;case 24:return null;default:return null}}var ji=!1,je=!1,Iy=typeof WeakSet=="function"?WeakSet:Set,I=null;function Tr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){fe(e,t,r)}else n.current=null}function ka(e,t,n){try{n()}catch(r){fe(e,t,r)}}var gd=!1;function zy(e,t){if(aa=os,e=kp(),yu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,l=-1,a=-1,u=0,c=0,f=e,m=null;t:for(;;){for(var d;f!==n||o!==0&&f.nodeType!==3||(l=s+o),f!==i||r!==0&&f.nodeType!==3||(a=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(d=f.firstChild)!==null;)m=f,f=d;for(;;){if(f===e)break t;if(m===n&&++u===o&&(l=s),m===i&&++c===r&&(a=s),(d=f.nextSibling)!==null)break;f=m,m=f.parentNode}f=d}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(ua={focusedElem:e,selectionRange:n},os=!1,I=t;I!==null;)if(t=I,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,I=e;else for(;I!==null;){t=I;try{var E=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(E!==null){var v=E.memoizedProps,w=E.memoizedState,h=t.stateNode,p=h.getSnapshotBeforeUpdate(t.elementType===t.type?v:ht(t.type,v),w);h.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(j(163))}}catch(S){fe(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,I=e;break}I=t.return}return E=gd,gd=!1,E}function jo(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&ka(t,n,i)}o=o.next}while(o!==r)}}function Fs(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Pa(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Sh(e){var t=e.alternate;t!==null&&(e.alternate=null,Sh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[jt],delete t[Wo],delete t[fa],delete t[wy],delete t[xy])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Eh(e){return e.tag===5||e.tag===3||e.tag===4}function vd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Eh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ta(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ls));else if(r!==4&&(e=e.child,e!==null))for(Ta(e,t,n),e=e.sibling;e!==null;)Ta(e,t,n),e=e.sibling}function Na(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Na(e,t,n),e=e.sibling;e!==null;)Na(e,t,n),e=e.sibling}var Ce=null,vt=!1;function on(e,t,n){for(n=n.child;n!==null;)Ch(e,t,n),n=n.sibling}function Ch(e,t,n){if(At&&typeof At.onCommitFiberUnmount=="function")try{At.onCommitFiberUnmount(Os,n)}catch{}switch(n.tag){case 5:je||Tr(n,t);case 6:var r=Ce,o=vt;Ce=null,on(e,t,n),Ce=r,vt=o,Ce!==null&&(vt?(e=Ce,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ce.removeChild(n.stateNode));break;case 18:Ce!==null&&(vt?(e=Ce,n=n.stateNode,e.nodeType===8?kl(e.parentNode,n):e.nodeType===1&&kl(e,n),Fo(e)):kl(Ce,n.stateNode));break;case 4:r=Ce,o=vt,Ce=n.stateNode.containerInfo,vt=!0,on(e,t,n),Ce=r,vt=o;break;case 0:case 11:case 14:case 15:if(!je&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&ka(n,t,s),o=o.next}while(o!==r)}on(e,t,n);break;case 1:if(!je&&(Tr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){fe(n,t,l)}on(e,t,n);break;case 21:on(e,t,n);break;case 22:n.mode&1?(je=(r=je)||n.memoizedState!==null,on(e,t,n),je=r):on(e,t,n);break;default:on(e,t,n)}}function yd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Iy),t.forEach(function(r){var o=Qy.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function ft(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=pe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Fy(r/1960))-r,10e?16:e,xn===null)var r=!1;else{if(e=xn,xn=null,xs=0,Z&6)throw Error(j(331));var o=Z;for(Z|=4,I=e.current;I!==null;){var i=I,s=i.child;if(I.flags&16){var l=i.deletions;if(l!==null){for(var a=0;ape()-Du?Jn(e,0):zu|=n),Ue(e,t)}function Oh(e,t){t===0&&(e.mode&1?(t=Si,Si<<=1,!(Si&130023424)&&(Si=4194304)):t=1);var n=Le();e=Kt(e,t),e!==null&&(ii(e,t,n),Ue(e,n))}function Hy(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Oh(e,n)}function Qy(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(j(314))}r!==null&&r.delete(t),Oh(e,n)}var Ah;Ah=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||$e.current)Fe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Fe=!1,_y(e,t,n);Fe=!!(e.flags&131072)}else Fe=!1,le&&t.flags&1048576&&Ip(t,ds,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Qi(e,t),e=t.pendingProps;var o=Kr(t,Oe.current);_r(t,n),o=Ou(null,t,r,e,o,n);var i=Au();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Be(r)?(i=!0,us(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Pu(t),o.updater=Ds,t.stateNode=o,o._reactInternals=t,ya(t,r,e,n),t=Sa(null,t,r,!0,i,n)):(t.tag=0,le&&i&&wu(t),Ae(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Qi(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Yy(r),e=ht(r,e),o){case 0:t=xa(null,t,r,e,n);break e;case 1:t=pd(null,t,r,e,n);break e;case 11:t=dd(null,t,r,e,n);break e;case 14:t=fd(null,t,r,ht(r.type,e),n);break e}throw Error(j(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ht(r,o),xa(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ht(r,o),pd(e,t,r,o,n);case 3:e:{if(mh(t),e===null)throw Error(j(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Up(e,t),hs(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=qr(Error(j(423)),t),t=hd(e,t,r,n,o);break e}else if(r!==o){o=qr(Error(j(424)),t),t=hd(e,t,r,n,o);break e}else for(Ge=kn(t.stateNode.containerInfo.firstChild),Xe=t,le=!0,yt=null,n=$p(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Yr(),r===o){t=Yt(e,t,n);break e}Ae(e,t,r,n)}t=t.child}return t;case 5:return Vp(t),e===null&&ma(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,ca(r,o)?s=null:i!==null&&ca(r,i)&&(t.flags|=32),hh(e,t),Ae(e,t,s,n),t.child;case 6:return e===null&&ma(t),null;case 13:return gh(e,t,n);case 4:return Tu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Gr(t,null,r,n):Ae(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ht(r,o),dd(e,t,r,o,n);case 7:return Ae(e,t,t.pendingProps,n),t.child;case 8:return Ae(e,t,t.pendingProps.children,n),t.child;case 12:return Ae(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,ne(fs,r._currentValue),r._currentValue=s,i!==null)if(St(i.value,s)){if(i.children===o.children&&!$e.current){t=Yt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){s=i.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=Wt(-1,n&-n),a.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),ga(i.return,n,t),l.lanes|=n;break}a=a.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(j(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),ga(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}Ae(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,_r(t,n),o=lt(o),r=r(o),t.flags|=1,Ae(e,t,r,n),t.child;case 14:return r=t.type,o=ht(r,t.pendingProps),o=ht(r.type,o),fd(e,t,r,o,n);case 15:return fh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ht(r,o),Qi(e,t),t.tag=1,Be(r)?(e=!0,us(t)):e=!1,_r(t,n),uh(t,r,o),ya(t,r,o,n),Sa(null,t,r,!0,e,n);case 19:return vh(e,t,n);case 22:return ph(e,t,n)}throw Error(j(156,t.tag))};function _h(e,t){return sp(e,t)}function Ky(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function it(e,t,n,r){return new Ky(e,t,n,r)}function Uu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Yy(e){if(typeof e=="function")return Uu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===lu)return 11;if(e===au)return 14}return 2}function Rn(e,t){var n=e.alternate;return n===null?(n=it(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Gi(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")Uu(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case yr:return er(n.children,o,i,t);case su:s=8,o|=8;break;case Ul:return e=it(12,n,t,o|2),e.elementType=Ul,e.lanes=i,e;case Vl:return e=it(13,n,t,o),e.elementType=Vl,e.lanes=i,e;case Wl:return e=it(19,n,t,o),e.elementType=Wl,e.lanes=i,e;case Vf:return Bs(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Bf:s=10;break e;case Uf:s=9;break e;case lu:s=11;break e;case au:s=14;break e;case un:s=16,r=null;break e}throw Error(j(130,e==null?e:typeof e,""))}return t=it(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function er(e,t,n,r){return e=it(7,e,r,t),e.lanes=n,e}function Bs(e,t,n,r){return e=it(22,e,r,t),e.elementType=Vf,e.lanes=n,e.stateNode={isHidden:!1},e}function _l(e,t,n){return e=it(6,e,null,t),e.lanes=n,e}function Ll(e,t,n){return t=it(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Gy(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=hl(0),this.expirationTimes=hl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=hl(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Vu(e,t,n,r,o,i,s,l,a){return e=new Gy(e,t,n,l,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=it(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Pu(i),e}function Xy(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(zh)}catch(e){console.error(e)}}zh(),zf.exports=Je;var ui=zf.exports;const Dh=bf(ui);var Fh,Pd=ui;Fh=Pd.createRoot,Pd.hydrateRoot;const t0=1,n0=1e6;let Ml=0;function r0(){return Ml=(Ml+1)%Number.MAX_SAFE_INTEGER,Ml.toString()}const Il=new Map,Td=e=>{if(Il.has(e))return;const t=setTimeout(()=>{Il.delete(e),_o({type:"REMOVE_TOAST",toastId:e})},n0);Il.set(e,t)},o0=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,t0)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?Td(n):e.toasts.forEach(r=>{Td(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},Xi=[];let qi={toasts:[]};function _o(e){qi=o0(qi,e),Xi.forEach(t=>{t(qi)})}function i0({...e}){const t=r0(),n=o=>_o({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>_o({type:"DISMISS_TOAST",toastId:t});return _o({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function s0(){const[e,t]=x.useState(qi);return x.useEffect(()=>(Xi.push(t),()=>{const n=Xi.indexOf(t);n>-1&&Xi.splice(n,1)}),[e]),{...e,toast:i0,dismiss:n=>_o({type:"DISMISS_TOAST",toastId:n})}}function ve(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Nd(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function $h(...e){return t=>{let n=!1;const r=e.map(o=>{const i=Nd(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o{var h;const{scope:m,children:d,...E}=f,v=((h=m==null?void 0:m[e])==null?void 0:h[a])||l,w=x.useMemo(()=>E,Object.values(E));return y.jsx(v.Provider,{value:w,children:d})};u.displayName=i+"Provider";function c(f,m){var v;const d=((v=m==null?void 0:m[e])==null?void 0:v[a])||l,E=x.useContext(d);if(E)return E;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[u,c]}const o=()=>{const i=n.map(s=>x.createContext(s));return function(l){const a=(l==null?void 0:l[e])||i;return x.useMemo(()=>({[`__scope${e}`]:{...l,[e]:a}}),[l,a])}};return o.scopeName=e,[r,l0(o,...t)]}function l0(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((l,{useScope:a,scopeName:u})=>{const f=a(i)[`__scope${u}`];return{...l,...f}},{});return x.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function _a(e){const t=a0(e),n=x.forwardRef((r,o)=>{const{children:i,...s}=r,l=x.Children.toArray(i),a=l.find(c0);if(a){const u=a.props.children,c=l.map(f=>f===a?x.Children.count(u)>1?x.Children.only(null):x.isValidElement(u)?u.props.children:null:f);return y.jsx(t,{...s,ref:o,children:x.isValidElement(u)?x.cloneElement(u,void 0,c):null})}return y.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function a0(e){const t=x.forwardRef((n,r)=>{const{children:o,...i}=n;if(x.isValidElement(o)){const s=f0(o),l=d0(i,o.props);return o.type!==x.Fragment&&(l.ref=r?$h(r,s):s),x.cloneElement(o,l)}return x.Children.count(o)>1?x.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Bh=Symbol("radix.slottable");function u0(e){const t=({children:n})=>y.jsx(y.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Bh,t}function c0(e){return x.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Bh}function d0(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...l)=>{const a=i(...l);return o(...l),a}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function f0(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function p0(e){const t=e+"CollectionProvider",[n,r]=Qs(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=v=>{const{scope:w,children:h}=v,p=O.useRef(null),g=O.useRef(new Map).current;return y.jsx(o,{scope:w,itemMap:g,collectionRef:p,children:h})};s.displayName=t;const l=e+"CollectionSlot",a=_a(l),u=O.forwardRef((v,w)=>{const{scope:h,children:p}=v,g=i(l,h),S=Et(w,g.collectionRef);return y.jsx(a,{ref:S,children:p})});u.displayName=l;const c=e+"CollectionItemSlot",f="data-radix-collection-item",m=_a(c),d=O.forwardRef((v,w)=>{const{scope:h,children:p,...g}=v,S=O.useRef(null),C=Et(w,S),b=i(c,h);return O.useEffect(()=>(b.itemMap.set(S,{ref:S,...g}),()=>void b.itemMap.delete(S))),y.jsx(m,{[f]:"",ref:C,children:p})});d.displayName=c;function E(v){const w=i(e+"CollectionConsumer",v);return O.useCallback(()=>{const p=w.collectionRef.current;if(!p)return[];const g=Array.from(p.querySelectorAll(`[${f}]`));return Array.from(w.itemMap.values()).sort((b,k)=>g.indexOf(b.ref.current)-g.indexOf(k.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:s,Slot:u,ItemSlot:d},E,r]}var h0=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],We=h0.reduce((e,t)=>{const n=_a(`Primitive.${t}`),r=x.forwardRef((o,i)=>{const{asChild:s,...l}=o,a=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(a,{...l,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Uh(e,t){e&&ui.flushSync(()=>e.dispatchEvent(t))}function An(e){const t=x.useRef(e);return x.useEffect(()=>{t.current=e}),x.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function m0(e,t=globalThis==null?void 0:globalThis.document){const n=An(e);x.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var g0="DismissableLayer",La="dismissableLayer.update",v0="dismissableLayer.pointerDownOutside",y0="dismissableLayer.focusOutside",Rd,Vh=x.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ku=x.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:l,...a}=e,u=x.useContext(Vh),[c,f]=x.useState(null),m=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,d]=x.useState({}),E=Et(t,k=>f(k)),v=Array.from(u.layers),[w]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),h=v.indexOf(w),p=c?v.indexOf(c):-1,g=u.layersWithOutsidePointerEventsDisabled.size>0,S=p>=h,C=x0(k=>{const N=k.target,L=[...u.branches].some(A=>A.contains(N));!S||L||(o==null||o(k),s==null||s(k),k.defaultPrevented||l==null||l())},m),b=S0(k=>{const N=k.target;[...u.branches].some(A=>A.contains(N))||(i==null||i(k),s==null||s(k),k.defaultPrevented||l==null||l())},m);return m0(k=>{p===u.layers.size-1&&(r==null||r(k),!k.defaultPrevented&&l&&(k.preventDefault(),l()))},m),x.useEffect(()=>{if(c)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Rd=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),jd(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=Rd)}},[c,m,n,u]),x.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),jd())},[c,u]),x.useEffect(()=>{const k=()=>d({});return document.addEventListener(La,k),()=>document.removeEventListener(La,k)},[]),y.jsx(We.div,{...a,ref:E,style:{pointerEvents:g?S?"auto":"none":void 0,...e.style},onFocusCapture:ve(e.onFocusCapture,b.onFocusCapture),onBlurCapture:ve(e.onBlurCapture,b.onBlurCapture),onPointerDownCapture:ve(e.onPointerDownCapture,C.onPointerDownCapture)})});Ku.displayName=g0;var w0="DismissableLayerBranch",Wh=x.forwardRef((e,t)=>{const n=x.useContext(Vh),r=x.useRef(null),o=Et(t,r);return x.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),y.jsx(We.div,{...e,ref:o})});Wh.displayName=w0;function x0(e,t=globalThis==null?void 0:globalThis.document){const n=An(e),r=x.useRef(!1),o=x.useRef(()=>{});return x.useEffect(()=>{const i=l=>{if(l.target&&!r.current){let a=function(){Hh(v0,n,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=a,t.addEventListener("click",o.current,{once:!0})):a()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function S0(e,t=globalThis==null?void 0:globalThis.document){const n=An(e),r=x.useRef(!1);return x.useEffect(()=>{const o=i=>{i.target&&!r.current&&Hh(y0,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function jd(){const e=new CustomEvent(La);document.dispatchEvent(e)}function Hh(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Uh(o,i):o.dispatchEvent(i)}var E0=Ku,C0=Wh,_n=globalThis!=null&&globalThis.document?x.useLayoutEffect:()=>{},b0="Portal",Qh=x.forwardRef((e,t)=>{var l;const{container:n,...r}=e,[o,i]=x.useState(!1);_n(()=>i(!0),[]);const s=n||o&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return s?Dh.createPortal(y.jsx(We.div,{...r,ref:t}),s):null});Qh.displayName=b0;function k0(e,t){return x.useReducer((n,r)=>t[n][r]??n,e)}var Yu=e=>{const{present:t,children:n}=e,r=P0(t),o=typeof n=="function"?n({present:r.isPresent}):x.Children.only(n),i=Et(r.ref,T0(o));return typeof n=="function"||r.isPresent?x.cloneElement(o,{ref:i}):null};Yu.displayName="Presence";function P0(e){const[t,n]=x.useState(),r=x.useRef(null),o=x.useRef(e),i=x.useRef("none"),s=e?"mounted":"unmounted",[l,a]=k0(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return x.useEffect(()=>{const u=_i(r.current);i.current=l==="mounted"?u:"none"},[l]),_n(()=>{const u=r.current,c=o.current;if(c!==e){const m=i.current,d=_i(u);e?a("MOUNT"):d==="none"||(u==null?void 0:u.display)==="none"?a("UNMOUNT"):a(c&&m!==d?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,a]),_n(()=>{if(t){let u;const c=t.ownerDocument.defaultView??window,f=d=>{const v=_i(r.current).includes(d.animationName);if(d.target===t&&v&&(a("ANIMATION_END"),!o.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},m=d=>{d.target===t&&(i.current=_i(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else a("ANIMATION_END")},[t,a]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:x.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function _i(e){return(e==null?void 0:e.animationName)||"none"}function T0(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var N0=Mf[" useInsertionEffect ".trim().toString()]||_n;function R0({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=j0({defaultProp:t,onChange:n}),l=e!==void 0,a=l?e:o;{const c=x.useRef(e!==void 0);x.useEffect(()=>{const f=c.current;f!==l&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),c.current=l},[l,r])}const u=x.useCallback(c=>{var f;if(l){const m=O0(c)?c(e):c;m!==e&&((f=s.current)==null||f.call(s,m))}else i(c)},[l,e,i,s]);return[a,u]}function j0({defaultProp:e,onChange:t}){const[n,r]=x.useState(e),o=x.useRef(n),i=x.useRef(t);return N0(()=>{i.current=t},[t]),x.useEffect(()=>{var s;o.current!==n&&((s=i.current)==null||s.call(i,n),o.current=n)},[n,o]),[n,r,i]}function O0(e){return typeof e=="function"}var A0=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),_0="VisuallyHidden",Ks=x.forwardRef((e,t)=>y.jsx(We.span,{...e,ref:t,style:{...A0,...e.style}}));Ks.displayName=_0;var L0=Ks,Gu="ToastProvider",[Xu,M0,I0]=p0("Toast"),[Kh,qE]=Qs("Toast",[I0]),[z0,Ys]=Kh(Gu),Yh=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:s}=e,[l,a]=x.useState(null),[u,c]=x.useState(0),f=x.useRef(!1),m=x.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Gu}\`. Expected non-empty \`string\`.`),y.jsx(Xu.Provider,{scope:t,children:y.jsx(z0,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:i,toastCount:u,viewport:l,onViewportChange:a,onToastAdd:x.useCallback(()=>c(d=>d+1),[]),onToastRemove:x.useCallback(()=>c(d=>d-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:m,children:s})})};Yh.displayName=Gu;var Gh="ToastViewport",D0=["F8"],Ma="toast.viewportPause",Ia="toast.viewportResume",Xh=x.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=D0,label:o="Notifications ({hotkey})",...i}=e,s=Ys(Gh,n),l=M0(n),a=x.useRef(null),u=x.useRef(null),c=x.useRef(null),f=x.useRef(null),m=Et(t,f,s.onViewportChange),d=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),E=s.toastCount>0;x.useEffect(()=>{const w=h=>{var g;r.length!==0&&r.every(S=>h[S]||h.code===S)&&((g=f.current)==null||g.focus())};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[r]),x.useEffect(()=>{const w=a.current,h=f.current;if(E&&w&&h){const p=()=>{if(!s.isClosePausedRef.current){const b=new CustomEvent(Ma);h.dispatchEvent(b),s.isClosePausedRef.current=!0}},g=()=>{if(s.isClosePausedRef.current){const b=new CustomEvent(Ia);h.dispatchEvent(b),s.isClosePausedRef.current=!1}},S=b=>{!w.contains(b.relatedTarget)&&g()},C=()=>{w.contains(document.activeElement)||g()};return w.addEventListener("focusin",p),w.addEventListener("focusout",S),w.addEventListener("pointermove",p),w.addEventListener("pointerleave",C),window.addEventListener("blur",p),window.addEventListener("focus",g),()=>{w.removeEventListener("focusin",p),w.removeEventListener("focusout",S),w.removeEventListener("pointermove",p),w.removeEventListener("pointerleave",C),window.removeEventListener("blur",p),window.removeEventListener("focus",g)}}},[E,s.isClosePausedRef]);const v=x.useCallback(({tabbingDirection:w})=>{const p=l().map(g=>{const S=g.ref.current,C=[S,...q0(S)];return w==="forwards"?C:C.reverse()});return(w==="forwards"?p.reverse():p).flat()},[l]);return x.useEffect(()=>{const w=f.current;if(w){const h=p=>{var C,b,k;const g=p.altKey||p.ctrlKey||p.metaKey;if(p.key==="Tab"&&!g){const N=document.activeElement,L=p.shiftKey;if(p.target===w&&L){(C=u.current)==null||C.focus();return}const z=v({tabbingDirection:L?"backwards":"forwards"}),Q=z.findIndex(_=>_===N);zl(z.slice(Q+1))?p.preventDefault():L?(b=u.current)==null||b.focus():(k=c.current)==null||k.focus()}};return w.addEventListener("keydown",h),()=>w.removeEventListener("keydown",h)}},[l,v]),y.jsxs(C0,{ref:a,role:"region","aria-label":o.replace("{hotkey}",d),tabIndex:-1,style:{pointerEvents:E?void 0:"none"},children:[E&&y.jsx(za,{ref:u,onFocusFromOutsideViewport:()=>{const w=v({tabbingDirection:"forwards"});zl(w)}}),y.jsx(Xu.Slot,{scope:n,children:y.jsx(We.ol,{tabIndex:-1,...i,ref:m})}),E&&y.jsx(za,{ref:c,onFocusFromOutsideViewport:()=>{const w=v({tabbingDirection:"backwards"});zl(w)}})]})});Xh.displayName=Gh;var qh="ToastFocusProxy",za=x.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,i=Ys(qh,n);return y.jsx(Ks,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:s=>{var u;const l=s.relatedTarget;!((u=i.viewport)!=null&&u.contains(l))&&r()}})});za.displayName=qh;var ci="Toast",F0="toast.swipeStart",$0="toast.swipeMove",B0="toast.swipeCancel",U0="toast.swipeEnd",Zh=x.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:i,...s}=e,[l,a]=R0({prop:r,defaultProp:o??!0,onChange:i,caller:ci});return y.jsx(Yu,{present:n||l,children:y.jsx(H0,{open:l,...s,ref:t,onClose:()=>a(!1),onPause:An(e.onPause),onResume:An(e.onResume),onSwipeStart:ve(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ve(e.onSwipeMove,u=>{const{x:c,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${f}px`)}),onSwipeCancel:ve(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ve(e.onSwipeEnd,u=>{const{x:c,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${f}px`),a(!1)})})})});Zh.displayName=ci;var[V0,W0]=Kh(ci,{onClose(){}}),H0=x.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:i,onClose:s,onEscapeKeyDown:l,onPause:a,onResume:u,onSwipeStart:c,onSwipeMove:f,onSwipeCancel:m,onSwipeEnd:d,...E}=e,v=Ys(ci,n),[w,h]=x.useState(null),p=Et(t,_=>h(_)),g=x.useRef(null),S=x.useRef(null),C=o||v.duration,b=x.useRef(0),k=x.useRef(C),N=x.useRef(0),{onToastAdd:L,onToastRemove:A}=v,F=An(()=>{var G;(w==null?void 0:w.contains(document.activeElement))&&((G=v.viewport)==null||G.focus()),s()}),z=x.useCallback(_=>{!_||_===1/0||(window.clearTimeout(N.current),b.current=new Date().getTime(),N.current=window.setTimeout(F,_))},[F]);x.useEffect(()=>{const _=v.viewport;if(_){const G=()=>{z(k.current),u==null||u()},B=()=>{const V=new Date().getTime()-b.current;k.current=k.current-V,window.clearTimeout(N.current),a==null||a()};return _.addEventListener(Ma,B),_.addEventListener(Ia,G),()=>{_.removeEventListener(Ma,B),_.removeEventListener(Ia,G)}}},[v.viewport,C,a,u,z]),x.useEffect(()=>{i&&!v.isClosePausedRef.current&&z(C)},[i,C,v.isClosePausedRef,z]),x.useEffect(()=>(L(),()=>A()),[L,A]);const Q=x.useMemo(()=>w?im(w):null,[w]);return v.viewport?y.jsxs(y.Fragment,{children:[Q&&y.jsx(Q0,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:Q}),y.jsx(V0,{scope:n,onClose:F,children:ui.createPortal(y.jsx(Xu.ItemSlot,{scope:n,children:y.jsx(E0,{asChild:!0,onEscapeKeyDown:ve(l,()=>{v.isFocusedToastEscapeKeyDownRef.current||F(),v.isFocusedToastEscapeKeyDownRef.current=!1}),children:y.jsx(We.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":v.swipeDirection,...E,ref:p,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:ve(e.onKeyDown,_=>{_.key==="Escape"&&(l==null||l(_.nativeEvent),_.nativeEvent.defaultPrevented||(v.isFocusedToastEscapeKeyDownRef.current=!0,F()))}),onPointerDown:ve(e.onPointerDown,_=>{_.button===0&&(g.current={x:_.clientX,y:_.clientY})}),onPointerMove:ve(e.onPointerMove,_=>{if(!g.current)return;const G=_.clientX-g.current.x,B=_.clientY-g.current.y,V=!!S.current,T=["left","right"].includes(v.swipeDirection),R=["left","up"].includes(v.swipeDirection)?Math.min:Math.max,M=T?R(0,G):0,W=T?0:R(0,B),D=_.pointerType==="touch"?10:2,K={x:M,y:W},X={originalEvent:_,delta:K};V?(S.current=K,Li($0,f,X,{discrete:!1})):Od(K,v.swipeDirection,D)?(S.current=K,Li(F0,c,X,{discrete:!1}),_.target.setPointerCapture(_.pointerId)):(Math.abs(G)>D||Math.abs(B)>D)&&(g.current=null)}),onPointerUp:ve(e.onPointerUp,_=>{const G=S.current,B=_.target;if(B.hasPointerCapture(_.pointerId)&&B.releasePointerCapture(_.pointerId),S.current=null,g.current=null,G){const V=_.currentTarget,T={originalEvent:_,delta:G};Od(G,v.swipeDirection,v.swipeThreshold)?Li(U0,d,T,{discrete:!0}):Li(B0,m,T,{discrete:!0}),V.addEventListener("click",R=>R.preventDefault(),{once:!0})}})})})}),v.viewport)})]}):null}),Q0=e=>{const{__scopeToast:t,children:n,...r}=e,o=Ys(ci,t),[i,s]=x.useState(!1),[l,a]=x.useState(!1);return G0(()=>s(!0)),x.useEffect(()=>{const u=window.setTimeout(()=>a(!0),1e3);return()=>window.clearTimeout(u)},[]),l?null:y.jsx(Qh,{asChild:!0,children:y.jsx(Ks,{...r,children:i&&y.jsxs(y.Fragment,{children:[o.label," ",n]})})})},K0="ToastTitle",Jh=x.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return y.jsx(We.div,{...r,ref:t})});Jh.displayName=K0;var Y0="ToastDescription",em=x.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return y.jsx(We.div,{...r,ref:t})});em.displayName=Y0;var tm="ToastAction",nm=x.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?y.jsx(om,{altText:n,asChild:!0,children:y.jsx(qu,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${tm}\`. Expected non-empty \`string\`.`),null)});nm.displayName=tm;var rm="ToastClose",qu=x.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=W0(rm,n);return y.jsx(om,{asChild:!0,children:y.jsx(We.button,{type:"button",...r,ref:t,onClick:ve(e.onClick,o.onClose)})})});qu.displayName=rm;var om=x.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return y.jsx(We.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function im(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),X0(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!o)if(i){const s=r.dataset.radixToastAnnounceAlt;s&&t.push(s)}else t.push(...im(r))}}),t}function Li(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Uh(o,i):o.dispatchEvent(i)}var Od=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),i=r>o;return t==="left"||t==="right"?i&&r>n:!i&&o>n};function G0(e=()=>{}){const t=An(e);_n(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function X0(e){return e.nodeType===e.ELEMENT_NODE}function q0(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function zl(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var Z0=Yh,sm=Xh,lm=Zh,am=Jh,um=em,cm=nm,dm=qu;function fm(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;ttypeof e=="boolean"?`${e}`:e===0?"0":e,_d=pm,J0=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return _d(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:i}=t,s=Object.keys(o).map(u=>{const c=n==null?void 0:n[u],f=i==null?void 0:i[u];if(c===null)return null;const m=Ad(c)||Ad(f);return o[u][m]}),l=n&&Object.entries(n).reduce((u,c)=>{let[f,m]=c;return m===void 0||(u[f]=m),u},{}),a=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:f,className:m,...d}=c;return Object.entries(d).every(E=>{let[v,w]=E;return Array.isArray(w)?w.includes({...i,...l}[v]):{...i,...l}[v]===w})?[...u,f,m]:u},[]);return _d(e,s,a,n==null?void 0:n.class,n==null?void 0:n.className)};/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ew=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),hm=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */var tw={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const nw=x.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:s,...l},a)=>x.createElement("svg",{ref:a,...tw,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:hm("lucide",o),...l},[...s.map(([u,c])=>x.createElement(u,c)),...Array.isArray(i)?i:[i]]));/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const He=(e,t)=>{const n=x.forwardRef(({className:r,...o},i)=>x.createElement(nw,{ref:i,iconNode:t,className:hm(`lucide-${ew(e)}`,r),...o}));return n.displayName=`${e}`,n};/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const rw=He("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ow=He("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const iw=He("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const sw=He("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const lw=He("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const aw=He("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const uw=He("Link2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const cw=He("Linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const dw=He("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Da=He("Mountain",[["path",{d:"m8 3 4 8 5-5 5 15H2L8 3z",key:"otkl63"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const fw=He("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const pw=He("Twitter",[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const hw=He("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const mm=He("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Zu="-",mw=e=>{const t=vw(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const l=s.split(Zu);return l[0]===""&&l.length!==1&&l.shift(),gm(l,t)||gw(s)},getConflictingClassGroupIds:(s,l)=>{const a=n[s]||[];return l&&r[s]?[...a,...r[s]]:a}}},gm=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?gm(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(Zu);return(s=t.validators.find(({validator:l})=>l(i)))==null?void 0:s.classGroupId},Ld=/^\[(.+)\]$/,gw=e=>{if(Ld.test(e)){const t=Ld.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},vw=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return ww(Object.entries(e.classGroups),n).forEach(([i,s])=>{Fa(s,r,i,t)}),r},Fa=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:Md(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(yw(o)){Fa(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,s])=>{Fa(s,Md(t,i),n,r)})})},Md=(e,t)=>{let n=e;return t.split(Zu).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},yw=e=>e.isThemeGetter,ww=(e,t)=>t?e.map(([n,r])=>{const o=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([s,l])=>[t+s,l])):i);return[n,o]}):e,xw=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(i,s)=>{n.set(i,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let s=n.get(i);if(s!==void 0)return s;if((s=r.get(i))!==void 0)return o(i,s),s},set(i,s){n.has(i)?n.set(i,s):o(i,s)}}},vm="!",Sw=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],i=t.length,s=l=>{const a=[];let u=0,c=0,f;for(let w=0;wc?f-c:void 0;return{modifiers:a,hasImportantModifier:d,baseClassName:E,maybePostfixModifierPosition:v}};return n?l=>n({className:l,parseClassName:s}):s},Ew=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},Cw=e=>({cache:xw(e.cacheSize),parseClassName:Sw(e),...mw(e)}),bw=/\s+/,kw=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],s=e.trim().split(bw);let l="";for(let a=s.length-1;a>=0;a-=1){const u=s[a],{modifiers:c,hasImportantModifier:f,baseClassName:m,maybePostfixModifierPosition:d}=n(u);let E=!!d,v=r(E?m.substring(0,d):m);if(!v){if(!E){l=u+(l.length>0?" "+l:l);continue}if(v=r(m),!v){l=u+(l.length>0?" "+l:l);continue}E=!1}const w=Ew(c).join(":"),h=f?w+vm:w,p=h+v;if(i.includes(p))continue;i.push(p);const g=o(v,E);for(let S=0;S0?" "+l:l)}return l};function Pw(){let e=0,t,n,r="";for(;e{if(typeof e=="string")return e;let t,n="";for(let r=0;rf(c),e());return n=Cw(u),r=n.cache.get,o=n.cache.set,i=l,l(a)}function l(a){const u=r(a);if(u)return u;const c=kw(a,n);return o(a,c),c}return function(){return i(Pw.apply(null,arguments))}}const re=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},wm=/^\[(?:([a-z-]+):)?(.+)\]$/i,Nw=/^\d+\/\d+$/,Rw=new Set(["px","full","screen"]),jw=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ow=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Aw=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,_w=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Lw=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,zt=e=>Mr(e)||Rw.has(e)||Nw.test(e),sn=e=>oo(e,"length",Uw),Mr=e=>!!e&&!Number.isNaN(Number(e)),Dl=e=>oo(e,"number",Mr),yo=e=>!!e&&Number.isInteger(Number(e)),Mw=e=>e.endsWith("%")&&Mr(e.slice(0,-1)),H=e=>wm.test(e),ln=e=>jw.test(e),Iw=new Set(["length","size","percentage"]),zw=e=>oo(e,Iw,xm),Dw=e=>oo(e,"position",xm),Fw=new Set(["image","url"]),$w=e=>oo(e,Fw,Ww),Bw=e=>oo(e,"",Vw),wo=()=>!0,oo=(e,t,n)=>{const r=wm.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},Uw=e=>Ow.test(e)&&!Aw.test(e),xm=()=>!1,Vw=e=>_w.test(e),Ww=e=>Lw.test(e),Hw=()=>{const e=re("colors"),t=re("spacing"),n=re("blur"),r=re("brightness"),o=re("borderColor"),i=re("borderRadius"),s=re("borderSpacing"),l=re("borderWidth"),a=re("contrast"),u=re("grayscale"),c=re("hueRotate"),f=re("invert"),m=re("gap"),d=re("gradientColorStops"),E=re("gradientColorStopPositions"),v=re("inset"),w=re("margin"),h=re("opacity"),p=re("padding"),g=re("saturate"),S=re("scale"),C=re("sepia"),b=re("skew"),k=re("space"),N=re("translate"),L=()=>["auto","contain","none"],A=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto",H,t],z=()=>[H,t],Q=()=>["",zt,sn],_=()=>["auto",Mr,H],G=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],B=()=>["solid","dashed","dotted","double","none"],V=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],T=()=>["start","end","center","between","around","evenly","stretch"],R=()=>["","0",H],M=()=>["auto","avoid","all","avoid-page","page","left","right","column"],W=()=>[Mr,H];return{cacheSize:500,separator:":",theme:{colors:[wo],spacing:[zt,sn],blur:["none","",ln,H],brightness:W(),borderColor:[e],borderRadius:["none","","full",ln,H],borderSpacing:z(),borderWidth:Q(),contrast:W(),grayscale:R(),hueRotate:W(),invert:R(),gap:z(),gradientColorStops:[e],gradientColorStopPositions:[Mw,sn],inset:F(),margin:F(),opacity:W(),padding:z(),saturate:W(),scale:W(),sepia:R(),skew:W(),space:z(),translate:z()},classGroups:{aspect:[{aspect:["auto","square","video",H]}],container:["container"],columns:[{columns:[ln]}],"break-after":[{"break-after":M()}],"break-before":[{"break-before":M()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...G(),H]}],overflow:[{overflow:A()}],"overflow-x":[{"overflow-x":A()}],"overflow-y":[{"overflow-y":A()}],overscroll:[{overscroll:L()}],"overscroll-x":[{"overscroll-x":L()}],"overscroll-y":[{"overscroll-y":L()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",yo,H]}],basis:[{basis:F()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",H]}],grow:[{grow:R()}],shrink:[{shrink:R()}],order:[{order:["first","last","none",yo,H]}],"grid-cols":[{"grid-cols":[wo]}],"col-start-end":[{col:["auto",{span:["full",yo,H]},H]}],"col-start":[{"col-start":_()}],"col-end":[{"col-end":_()}],"grid-rows":[{"grid-rows":[wo]}],"row-start-end":[{row:["auto",{span:[yo,H]},H]}],"row-start":[{"row-start":_()}],"row-end":[{"row-end":_()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",H]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",H]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal",...T()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...T(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...T(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[p]}],px:[{px:[p]}],py:[{py:[p]}],ps:[{ps:[p]}],pe:[{pe:[p]}],pt:[{pt:[p]}],pr:[{pr:[p]}],pb:[{pb:[p]}],pl:[{pl:[p]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",H,t]}],"min-w":[{"min-w":[H,t,"min","max","fit"]}],"max-w":[{"max-w":[H,t,"none","full","min","max","fit","prose",{screen:[ln]},ln]}],h:[{h:[H,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[H,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[H,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[H,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ln,sn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Dl]}],"font-family":[{font:[wo]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",H]}],"line-clamp":[{"line-clamp":["none",Mr,Dl]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",zt,H]}],"list-image":[{"list-image":["none",H]}],"list-style-type":[{list:["none","disc","decimal",H]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[h]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[h]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...B(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",zt,sn]}],"underline-offset":[{"underline-offset":["auto",zt,H]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:z()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",H]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",H]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[h]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...G(),Dw]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",zw]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},$w]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[E]}],"gradient-via-pos":[{via:[E]}],"gradient-to-pos":[{to:[E]}],"gradient-from":[{from:[d]}],"gradient-via":[{via:[d]}],"gradient-to":[{to:[d]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[h]}],"border-style":[{border:[...B(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[h]}],"divide-style":[{divide:B()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...B()]}],"outline-offset":[{"outline-offset":[zt,H]}],"outline-w":[{outline:[zt,sn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[h]}],"ring-offset-w":[{"ring-offset":[zt,sn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ln,Bw]}],"shadow-color":[{shadow:[wo]}],opacity:[{opacity:[h]}],"mix-blend":[{"mix-blend":[...V(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":V()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[a]}],"drop-shadow":[{"drop-shadow":["","none",ln,H]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[f]}],saturate:[{saturate:[g]}],sepia:[{sepia:[C]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[a]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[h]}],"backdrop-saturate":[{"backdrop-saturate":[g]}],"backdrop-sepia":[{"backdrop-sepia":[C]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",H]}],duration:[{duration:W()}],ease:[{ease:["linear","in","out","in-out",H]}],delay:[{delay:W()}],animate:[{animate:["none","spin","ping","pulse","bounce",H]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[yo,H]}],"translate-x":[{"translate-x":[N]}],"translate-y":[{"translate-y":[N]}],"skew-x":[{"skew-x":[b]}],"skew-y":[{"skew-y":[b]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",H]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",H]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":z()}],"scroll-mx":[{"scroll-mx":z()}],"scroll-my":[{"scroll-my":z()}],"scroll-ms":[{"scroll-ms":z()}],"scroll-me":[{"scroll-me":z()}],"scroll-mt":[{"scroll-mt":z()}],"scroll-mr":[{"scroll-mr":z()}],"scroll-mb":[{"scroll-mb":z()}],"scroll-ml":[{"scroll-ml":z()}],"scroll-p":[{"scroll-p":z()}],"scroll-px":[{"scroll-px":z()}],"scroll-py":[{"scroll-py":z()}],"scroll-ps":[{"scroll-ps":z()}],"scroll-pe":[{"scroll-pe":z()}],"scroll-pt":[{"scroll-pt":z()}],"scroll-pr":[{"scroll-pr":z()}],"scroll-pb":[{"scroll-pb":z()}],"scroll-pl":[{"scroll-pl":z()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",H]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[zt,sn,Dl]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},Qw=Tw(Hw);function ur(...e){return Qw(pm(e))}const Kw=Z0,Sm=x.forwardRef(({className:e,...t},n)=>y.jsx(sm,{ref:n,className:ur("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));Sm.displayName=sm.displayName;const Yw=J0("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),Em=x.forwardRef(({className:e,variant:t,...n},r)=>y.jsx(lm,{ref:r,className:ur(Yw({variant:t}),e),...n}));Em.displayName=lm.displayName;const Gw=x.forwardRef(({className:e,...t},n)=>y.jsx(cm,{ref:n,className:ur("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));Gw.displayName=cm.displayName;const Cm=x.forwardRef(({className:e,...t},n)=>y.jsx(dm,{ref:n,className:ur("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:y.jsx(mm,{className:"h-4 w-4"})}));Cm.displayName=dm.displayName;const bm=x.forwardRef(({className:e,...t},n)=>y.jsx(am,{ref:n,className:ur("text-sm font-semibold",e),...t}));bm.displayName=am.displayName;const km=x.forwardRef(({className:e,...t},n)=>y.jsx(um,{ref:n,className:ur("text-sm opacity-90",e),...t}));km.displayName=um.displayName;function Xw(){const{toasts:e}=s0();return y.jsxs(Kw,{children:[e.map(function({id:t,title:n,description:r,action:o,...i}){return y.jsxs(Em,{...i,children:[y.jsxs("div",{className:"grid gap-1",children:[n&&y.jsx(bm,{children:n}),r&&y.jsx(km,{children:r})]}),o,y.jsx(Cm,{})]},t)}),y.jsx(Sm,{})]})}var Id=["light","dark"],qw="(prefers-color-scheme: dark)",Zw=x.createContext(void 0),Jw={setTheme:e=>{},themes:[]},ex=()=>{var e;return(e=x.useContext(Zw))!=null?e:Jw};x.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:i,value:s,attrs:l,nonce:a})=>{let u=i==="system",c=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${l.map(E=>`'${E}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,f=o?Id.includes(i)&&i?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",m=(E,v=!1,w=!0)=>{let h=s?s[E]:E,p=v?E+"|| ''":`'${h}'`,g="";return o&&w&&!v&&Id.includes(E)&&(g+=`d.style.colorScheme = '${E}';`),n==="class"?v||h?g+=`c.add(${p})`:g+="null":h&&(g+=`d[s](n,${p})`),g},d=e?`!function(){${c}${m(e)}}()`:r?`!function(){try{${c}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${qw}',m=window.matchMedia(t);if(m.media!==t||m.matches){${m("dark")}}else{${m("light")}}}else if(e){${s?`var x=${JSON.stringify(s)};`:""}${m(s?"x[e]":"e",!0)}}${u?"":"else{"+m(i,!1,!1)+"}"}${f}}catch(e){}}()`:`!function(){try{${c}var e=localStorage.getItem('${t}');if(e){${s?`var x=${JSON.stringify(s)};`:""}${m(s?"x[e]":"e",!0)}}else{${m(i,!1,!1)};}${f}}catch(t){}}();`;return x.createElement("script",{nonce:a,dangerouslySetInnerHTML:{__html:d}})});var tx=e=>{switch(e){case"success":return ox;case"info":return sx;case"warning":return ix;case"error":return lx;default:return null}},nx=Array(12).fill(0),rx=({visible:e,className:t})=>O.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},O.createElement("div",{className:"sonner-spinner"},nx.map((n,r)=>O.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),ox=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},O.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),ix=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},O.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),sx=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},O.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),lx=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},O.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),ax=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},O.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),O.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),ux=()=>{let[e,t]=O.useState(document.hidden);return O.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},$a=1,cx=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,o=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:$a++,i=this.toasts.find(l=>l.id===o),s=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),i?this.toasts=this.toasts.map(l=>l.id===o?(this.publish({...l,...e,id:o,title:n}),{...l,...e,id:o,dismissible:s,title:n}):l):this.addToast({title:n,...r,dismissible:s,id:o}),o},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),o=n!==void 0,i,s=r.then(async a=>{if(i=["resolve",a],O.isValidElement(a))o=!1,this.create({id:n,type:"default",message:a});else if(fx(a)&&!a.ok){o=!1;let u=typeof t.error=="function"?await t.error(`HTTP error! status: ${a.status}`):t.error,c=typeof t.description=="function"?await t.description(`HTTP error! status: ${a.status}`):t.description;this.create({id:n,type:"error",message:u,description:c})}else if(t.success!==void 0){o=!1;let u=typeof t.success=="function"?await t.success(a):t.success,c=typeof t.description=="function"?await t.description(a):t.description;this.create({id:n,type:"success",message:u,description:c})}}).catch(async a=>{if(i=["reject",a],t.error!==void 0){o=!1;let u=typeof t.error=="function"?await t.error(a):t.error,c=typeof t.description=="function"?await t.description(a):t.description;this.create({id:n,type:"error",message:u,description:c})}}).finally(()=>{var a;o&&(this.dismiss(n),n=void 0),(a=t.finally)==null||a.call(t)}),l=()=>new Promise((a,u)=>s.then(()=>i[0]==="reject"?u(i[1]):a(i[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:l}:Object.assign(n,{unwrap:l})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||$a++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},ze=new cx,dx=(e,t)=>{let n=(t==null?void 0:t.id)||$a++;return ze.addToast({title:e,...t,id:n}),n},fx=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",px=dx,hx=()=>ze.toasts,mx=()=>ze.getActiveToasts(),gx=Object.assign(px,{success:ze.success,info:ze.info,warning:ze.warning,error:ze.error,custom:ze.custom,message:ze.message,promise:ze.promise,dismiss:ze.dismiss,loading:ze.loading},{getHistory:hx,getToasts:mx});function vx(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}vx(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)} `);function Mi(e){return e.label!==void 0}var yx=3,wx="32px",xx="16px",zd=4e3,Sx=356,Ex=14,Cx=20,bx=200;function pt(...e){return e.filter(Boolean).join(" ")}function kx(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var Px=e=>{var t,n,r,o,i,s,l,a,u,c,f;let{invert:m,toast:d,unstyled:E,interacting:v,setHeights:w,visibleToasts:h,heights:p,index:g,toasts:S,expanded:C,removeToast:b,defaultRichColors:k,closeButton:N,style:L,cancelButtonStyle:A,actionButtonStyle:F,className:z="",descriptionClassName:Q="",duration:_,position:G,gap:B,loadingIcon:V,expandByDefault:T,classNames:R,icons:M,closeButtonAriaLabel:W="Close toast",pauseWhenPageIsHidden:D}=e,[K,X]=O.useState(null),[he,Pe]=O.useState(null),[J,cr]=O.useState(!1),[Zt,Fn]=O.useState(!1),[Jt,dr]=O.useState(!1),[en,fi]=O.useState(!1),[ol,pi]=O.useState(!1),[il,lo]=O.useState(0),[fr,dc]=O.useState(0),ao=O.useRef(d.duration||_||zd),fc=O.useRef(null),$n=O.useRef(null),xg=g===0,Sg=g+1<=h,tt=d.type,pr=d.dismissible!==!1,Eg=d.className||"",Cg=d.descriptionClassName||"",hi=O.useMemo(()=>p.findIndex(U=>U.toastId===d.id)||0,[p,d.id]),bg=O.useMemo(()=>{var U;return(U=d.closeButton)!=null?U:N},[d.closeButton,N]),pc=O.useMemo(()=>d.duration||_||zd,[d.duration,_]),sl=O.useRef(0),hr=O.useRef(0),hc=O.useRef(0),mr=O.useRef(null),[kg,Pg]=G.split("-"),mc=O.useMemo(()=>p.reduce((U,te,se)=>se>=hi?U:U+te.height,0),[p,hi]),gc=ux(),Tg=d.invert||m,ll=tt==="loading";hr.current=O.useMemo(()=>hi*B+mc,[hi,mc]),O.useEffect(()=>{ao.current=pc},[pc]),O.useEffect(()=>{cr(!0)},[]),O.useEffect(()=>{let U=$n.current;if(U){let te=U.getBoundingClientRect().height;return dc(te),w(se=>[{toastId:d.id,height:te,position:d.position},...se]),()=>w(se=>se.filter(ut=>ut.toastId!==d.id))}},[w,d.id]),O.useLayoutEffect(()=>{if(!J)return;let U=$n.current,te=U.style.height;U.style.height="auto";let se=U.getBoundingClientRect().height;U.style.height=te,dc(se),w(ut=>ut.find(ct=>ct.toastId===d.id)?ut.map(ct=>ct.toastId===d.id?{...ct,height:se}:ct):[{toastId:d.id,height:se,position:d.position},...ut])},[J,d.title,d.description,w,d.id]);let tn=O.useCallback(()=>{Fn(!0),lo(hr.current),w(U=>U.filter(te=>te.toastId!==d.id)),setTimeout(()=>{b(d)},bx)},[d,b,w,hr]);O.useEffect(()=>{if(d.promise&&tt==="loading"||d.duration===1/0||d.type==="loading")return;let U;return C||v||D&&gc?(()=>{if(hc.current{var te;(te=d.onAutoClose)==null||te.call(d,d),tn()},ao.current)),()=>clearTimeout(U)},[C,v,d,tt,D,gc,tn]),O.useEffect(()=>{d.delete&&tn()},[tn,d.delete]);function Ng(){var U,te,se;return M!=null&&M.loading?O.createElement("div",{className:pt(R==null?void 0:R.loader,(U=d==null?void 0:d.classNames)==null?void 0:U.loader,"sonner-loader"),"data-visible":tt==="loading"},M.loading):V?O.createElement("div",{className:pt(R==null?void 0:R.loader,(te=d==null?void 0:d.classNames)==null?void 0:te.loader,"sonner-loader"),"data-visible":tt==="loading"},V):O.createElement(rx,{className:pt(R==null?void 0:R.loader,(se=d==null?void 0:d.classNames)==null?void 0:se.loader),visible:tt==="loading"})}return O.createElement("li",{tabIndex:0,ref:$n,className:pt(z,Eg,R==null?void 0:R.toast,(t=d==null?void 0:d.classNames)==null?void 0:t.toast,R==null?void 0:R.default,R==null?void 0:R[tt],(n=d==null?void 0:d.classNames)==null?void 0:n[tt]),"data-sonner-toast":"","data-rich-colors":(r=d.richColors)!=null?r:k,"data-styled":!(d.jsx||d.unstyled||E),"data-mounted":J,"data-promise":!!d.promise,"data-swiped":ol,"data-removed":Zt,"data-visible":Sg,"data-y-position":kg,"data-x-position":Pg,"data-index":g,"data-front":xg,"data-swiping":Jt,"data-dismissible":pr,"data-type":tt,"data-invert":Tg,"data-swipe-out":en,"data-swipe-direction":he,"data-expanded":!!(C||T&&J),style:{"--index":g,"--toasts-before":g,"--z-index":S.length-g,"--offset":`${Zt?il:hr.current}px`,"--initial-height":T?"auto":`${fr}px`,...L,...d.style},onDragEnd:()=>{dr(!1),X(null),mr.current=null},onPointerDown:U=>{ll||!pr||(fc.current=new Date,lo(hr.current),U.target.setPointerCapture(U.pointerId),U.target.tagName!=="BUTTON"&&(dr(!0),mr.current={x:U.clientX,y:U.clientY}))},onPointerUp:()=>{var U,te,se,ut;if(en||!pr)return;mr.current=null;let ct=Number(((U=$n.current)==null?void 0:U.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),nn=Number(((te=$n.current)==null?void 0:te.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Bn=new Date().getTime()-((se=fc.current)==null?void 0:se.getTime()),dt=K==="x"?ct:nn,rn=Math.abs(dt)/Bn;if(Math.abs(dt)>=Cx||rn>.11){lo(hr.current),(ut=d.onDismiss)==null||ut.call(d,d),Pe(K==="x"?ct>0?"right":"left":nn>0?"down":"up"),tn(),fi(!0),pi(!1);return}dr(!1),X(null)},onPointerMove:U=>{var te,se,ut,ct;if(!mr.current||!pr||((te=window.getSelection())==null?void 0:te.toString().length)>0)return;let nn=U.clientY-mr.current.y,Bn=U.clientX-mr.current.x,dt=(se=e.swipeDirections)!=null?se:kx(G);!K&&(Math.abs(Bn)>1||Math.abs(nn)>1)&&X(Math.abs(Bn)>Math.abs(nn)?"x":"y");let rn={x:0,y:0};K==="y"?(dt.includes("top")||dt.includes("bottom"))&&(dt.includes("top")&&nn<0||dt.includes("bottom")&&nn>0)&&(rn.y=nn):K==="x"&&(dt.includes("left")||dt.includes("right"))&&(dt.includes("left")&&Bn<0||dt.includes("right")&&Bn>0)&&(rn.x=Bn),(Math.abs(rn.x)>0||Math.abs(rn.y)>0)&&pi(!0),(ut=$n.current)==null||ut.style.setProperty("--swipe-amount-x",`${rn.x}px`),(ct=$n.current)==null||ct.style.setProperty("--swipe-amount-y",`${rn.y}px`)}},bg&&!d.jsx?O.createElement("button",{"aria-label":W,"data-disabled":ll,"data-close-button":!0,onClick:ll||!pr?()=>{}:()=>{var U;tn(),(U=d.onDismiss)==null||U.call(d,d)},className:pt(R==null?void 0:R.closeButton,(o=d==null?void 0:d.classNames)==null?void 0:o.closeButton)},(i=M==null?void 0:M.close)!=null?i:ax):null,d.jsx||x.isValidElement(d.title)?d.jsx?d.jsx:typeof d.title=="function"?d.title():d.title:O.createElement(O.Fragment,null,tt||d.icon||d.promise?O.createElement("div",{"data-icon":"",className:pt(R==null?void 0:R.icon,(s=d==null?void 0:d.classNames)==null?void 0:s.icon)},d.promise||d.type==="loading"&&!d.icon?d.icon||Ng():null,d.type!=="loading"?d.icon||(M==null?void 0:M[tt])||tx(tt):null):null,O.createElement("div",{"data-content":"",className:pt(R==null?void 0:R.content,(l=d==null?void 0:d.classNames)==null?void 0:l.content)},O.createElement("div",{"data-title":"",className:pt(R==null?void 0:R.title,(a=d==null?void 0:d.classNames)==null?void 0:a.title)},typeof d.title=="function"?d.title():d.title),d.description?O.createElement("div",{"data-description":"",className:pt(Q,Cg,R==null?void 0:R.description,(u=d==null?void 0:d.classNames)==null?void 0:u.description)},typeof d.description=="function"?d.description():d.description):null),x.isValidElement(d.cancel)?d.cancel:d.cancel&&Mi(d.cancel)?O.createElement("button",{"data-button":!0,"data-cancel":!0,style:d.cancelButtonStyle||A,onClick:U=>{var te,se;Mi(d.cancel)&&pr&&((se=(te=d.cancel).onClick)==null||se.call(te,U),tn())},className:pt(R==null?void 0:R.cancelButton,(c=d==null?void 0:d.classNames)==null?void 0:c.cancelButton)},d.cancel.label):null,x.isValidElement(d.action)?d.action:d.action&&Mi(d.action)?O.createElement("button",{"data-button":!0,"data-action":!0,style:d.actionButtonStyle||F,onClick:U=>{var te,se;Mi(d.action)&&((se=(te=d.action).onClick)==null||se.call(te,U),!U.defaultPrevented&&tn())},className:pt(R==null?void 0:R.actionButton,(f=d==null?void 0:d.classNames)==null?void 0:f.actionButton)},d.action.label):null))};function Dd(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function Tx(e,t){let n={};return[e,t].forEach((r,o)=>{let i=o===1,s=i?"--mobile-offset":"--offset",l=i?xx:wx;function a(u){["top","right","bottom","left"].forEach(c=>{n[`${s}-${c}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?a(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${s}-${u}`]=l:n[`${s}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):a(l)}),n}var Nx=x.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:o=["altKey","KeyT"],expand:i,closeButton:s,className:l,offset:a,mobileOffset:u,theme:c="light",richColors:f,duration:m,style:d,visibleToasts:E=yx,toastOptions:v,dir:w=Dd(),gap:h=Ex,loadingIcon:p,icons:g,containerAriaLabel:S="Notifications",pauseWhenPageIsHidden:C}=e,[b,k]=O.useState([]),N=O.useMemo(()=>Array.from(new Set([r].concat(b.filter(D=>D.position).map(D=>D.position)))),[b,r]),[L,A]=O.useState([]),[F,z]=O.useState(!1),[Q,_]=O.useState(!1),[G,B]=O.useState(c!=="system"?c:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),V=O.useRef(null),T=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),R=O.useRef(null),M=O.useRef(!1),W=O.useCallback(D=>{k(K=>{var X;return(X=K.find(he=>he.id===D.id))!=null&&X.delete||ze.dismiss(D.id),K.filter(({id:he})=>he!==D.id)})},[]);return O.useEffect(()=>ze.subscribe(D=>{if(D.dismiss){k(K=>K.map(X=>X.id===D.id?{...X,delete:!0}:X));return}setTimeout(()=>{Dh.flushSync(()=>{k(K=>{let X=K.findIndex(he=>he.id===D.id);return X!==-1?[...K.slice(0,X),{...K[X],...D},...K.slice(X+1)]:[D,...K]})})})}),[]),O.useEffect(()=>{if(c!=="system"){B(c);return}if(c==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?B("dark"):B("light")),typeof window>"u")return;let D=window.matchMedia("(prefers-color-scheme: dark)");try{D.addEventListener("change",({matches:K})=>{B(K?"dark":"light")})}catch{D.addListener(({matches:X})=>{try{B(X?"dark":"light")}catch(he){console.error(he)}})}},[c]),O.useEffect(()=>{b.length<=1&&z(!1)},[b]),O.useEffect(()=>{let D=K=>{var X,he;o.every(Pe=>K[Pe]||K.code===Pe)&&(z(!0),(X=V.current)==null||X.focus()),K.code==="Escape"&&(document.activeElement===V.current||(he=V.current)!=null&&he.contains(document.activeElement))&&z(!1)};return document.addEventListener("keydown",D),()=>document.removeEventListener("keydown",D)},[o]),O.useEffect(()=>{if(V.current)return()=>{R.current&&(R.current.focus({preventScroll:!0}),R.current=null,M.current=!1)}},[V.current]),O.createElement("section",{ref:t,"aria-label":`${S} ${T}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},N.map((D,K)=>{var X;let[he,Pe]=D.split("-");return b.length?O.createElement("ol",{key:D,dir:w==="auto"?Dd():w,tabIndex:-1,ref:V,className:l,"data-sonner-toaster":!0,"data-theme":G,"data-y-position":he,"data-lifted":F&&b.length>1&&!i,"data-x-position":Pe,style:{"--front-toast-height":`${((X=L[0])==null?void 0:X.height)||0}px`,"--width":`${Sx}px`,"--gap":`${h}px`,...d,...Tx(a,u)},onBlur:J=>{M.current&&!J.currentTarget.contains(J.relatedTarget)&&(M.current=!1,R.current&&(R.current.focus({preventScroll:!0}),R.current=null))},onFocus:J=>{J.target instanceof HTMLElement&&J.target.dataset.dismissible==="false"||M.current||(M.current=!0,R.current=J.relatedTarget)},onMouseEnter:()=>z(!0),onMouseMove:()=>z(!0),onMouseLeave:()=>{Q||z(!1)},onDragEnd:()=>z(!1),onPointerDown:J=>{J.target instanceof HTMLElement&&J.target.dataset.dismissible==="false"||_(!0)},onPointerUp:()=>_(!1)},b.filter(J=>!J.position&&K===0||J.position===D).map((J,cr)=>{var Zt,Fn;return O.createElement(Px,{key:J.id,icons:g,index:cr,toast:J,defaultRichColors:f,duration:(Zt=v==null?void 0:v.duration)!=null?Zt:m,className:v==null?void 0:v.className,descriptionClassName:v==null?void 0:v.descriptionClassName,invert:n,visibleToasts:E,closeButton:(Fn=v==null?void 0:v.closeButton)!=null?Fn:s,interacting:Q,position:D,style:v==null?void 0:v.style,unstyled:v==null?void 0:v.unstyled,classNames:v==null?void 0:v.classNames,cancelButtonStyle:v==null?void 0:v.cancelButtonStyle,actionButtonStyle:v==null?void 0:v.actionButtonStyle,removeToast:W,toasts:b.filter(Jt=>Jt.position==J.position),heights:L.filter(Jt=>Jt.position==J.position),setHeights:A,expandByDefault:i,gap:h,loadingIcon:p,expanded:F,pauseWhenPageIsHidden:C,swipeDirections:e.swipeDirections})})):null}))});const Rx=({...e})=>{const{theme:t="system"}=ex();return y.jsx(Nx,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})},jx=["top","right","bottom","left"],Ln=Math.min,Ye=Math.max,Cs=Math.round,Ii=Math.floor,Lt=e=>({x:e,y:e}),Ox={left:"right",right:"left",bottom:"top",top:"bottom"},Ax={start:"end",end:"start"};function Ba(e,t,n){return Ye(e,Ln(t,n))}function Gt(e,t){return typeof e=="function"?e(t):e}function Xt(e){return e.split("-")[0]}function io(e){return e.split("-")[1]}function Ju(e){return e==="x"?"y":"x"}function ec(e){return e==="y"?"height":"width"}const _x=new Set(["top","bottom"]);function Ot(e){return _x.has(Xt(e))?"y":"x"}function tc(e){return Ju(Ot(e))}function Lx(e,t,n){n===void 0&&(n=!1);const r=io(e),o=tc(e),i=ec(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=bs(s)),[s,bs(s)]}function Mx(e){const t=bs(e);return[Ua(e),t,Ua(t)]}function Ua(e){return e.replace(/start|end/g,t=>Ax[t])}const Fd=["left","right"],$d=["right","left"],Ix=["top","bottom"],zx=["bottom","top"];function Dx(e,t,n){switch(e){case"top":case"bottom":return n?t?$d:Fd:t?Fd:$d;case"left":case"right":return t?Ix:zx;default:return[]}}function Fx(e,t,n,r){const o=io(e);let i=Dx(Xt(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Ua)))),i}function bs(e){return e.replace(/left|right|bottom|top/g,t=>Ox[t])}function $x(e){return{top:0,right:0,bottom:0,left:0,...e}}function Pm(e){return typeof e!="number"?$x(e):{top:e,right:e,bottom:e,left:e}}function ks(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Bd(e,t,n){let{reference:r,floating:o}=e;const i=Ot(t),s=tc(t),l=ec(s),a=Xt(t),u=i==="y",c=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,m=r[l]/2-o[l]/2;let d;switch(a){case"top":d={x:c,y:r.y-o.height};break;case"bottom":d={x:c,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:f};break;case"left":d={x:r.x-o.width,y:f};break;default:d={x:r.x,y:r.y}}switch(io(t)){case"start":d[s]-=m*(n&&u?-1:1);break;case"end":d[s]+=m*(n&&u?-1:1);break}return d}const Bx=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,l=i.filter(Boolean),a=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:f}=Bd(u,r,a),m=r,d={},E=0;for(let v=0;v({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:l,middlewareData:a}=t,{element:u,padding:c=0}=Gt(e,t)||{};if(u==null)return{};const f=Pm(c),m={x:n,y:r},d=tc(o),E=ec(d),v=await s.getDimensions(u),w=d==="y",h=w?"top":"left",p=w?"bottom":"right",g=w?"clientHeight":"clientWidth",S=i.reference[E]+i.reference[d]-m[d]-i.floating[E],C=m[d]-i.reference[d],b=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let k=b?b[g]:0;(!k||!await(s.isElement==null?void 0:s.isElement(b)))&&(k=l.floating[g]||i.floating[E]);const N=S/2-C/2,L=k/2-v[E]/2-1,A=Ln(f[h],L),F=Ln(f[p],L),z=A,Q=k-v[E]-F,_=k/2-v[E]/2+N,G=Ba(z,_,Q),B=!a.arrow&&io(o)!=null&&_!==G&&i.reference[E]/2-(__<=0)){var F,z;const _=(((F=i.flip)==null?void 0:F.index)||0)+1,G=k[_];if(G&&(!(f==="alignment"?p!==Ot(G):!1)||A.every(T=>T.overflows[0]>0&&Ot(T.placement)===p)))return{data:{index:_,overflows:A},reset:{placement:G}};let B=(z=A.filter(V=>V.overflows[0]<=0).sort((V,T)=>V.overflows[1]-T.overflows[1])[0])==null?void 0:z.placement;if(!B)switch(d){case"bestFit":{var Q;const V=(Q=A.filter(T=>{if(b){const R=Ot(T.placement);return R===p||R==="y"}return!0}).map(T=>[T.placement,T.overflows.filter(R=>R>0).reduce((R,M)=>R+M,0)]).sort((T,R)=>T[1]-R[1])[0])==null?void 0:Q[0];V&&(B=V);break}case"initialPlacement":B=l;break}if(o!==B)return{reset:{placement:B}}}return{}}}};function Ud(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Vd(e){return jx.some(t=>e[t]>=0)}const Wx=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Gt(e,t);switch(r){case"referenceHidden":{const i=await qo(t,{...o,elementContext:"reference"}),s=Ud(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Vd(s)}}}case"escaped":{const i=await qo(t,{...o,altBoundary:!0}),s=Ud(i,n.floating);return{data:{escapedOffsets:s,escaped:Vd(s)}}}default:return{}}}}},Tm=new Set(["left","top"]);async function Hx(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Xt(n),l=io(n),a=Ot(n)==="y",u=Tm.has(s)?-1:1,c=i&&a?-1:1,f=Gt(t,e);let{mainAxis:m,crossAxis:d,alignmentAxis:E}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof E=="number"&&(d=l==="end"?E*-1:E),a?{x:d*c,y:m*u}:{x:m*u,y:d*c}}const Qx=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:l}=t,a=await Hx(t,e);return s===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+a.x,y:i+a.y,data:{...a,placement:s}}}}},Kx=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:w=>{let{x:h,y:p}=w;return{x:h,y:p}}},...a}=Gt(e,t),u={x:n,y:r},c=await qo(t,a),f=Ot(Xt(o)),m=Ju(f);let d=u[m],E=u[f];if(i){const w=m==="y"?"top":"left",h=m==="y"?"bottom":"right",p=d+c[w],g=d-c[h];d=Ba(p,d,g)}if(s){const w=f==="y"?"top":"left",h=f==="y"?"bottom":"right",p=E+c[w],g=E-c[h];E=Ba(p,E,g)}const v=l.fn({...t,[m]:d,[f]:E});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[m]:i,[f]:s}}}}}},Yx=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:l=0,mainAxis:a=!0,crossAxis:u=!0}=Gt(e,t),c={x:n,y:r},f=Ot(o),m=Ju(f);let d=c[m],E=c[f];const v=Gt(l,t),w=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(a){const g=m==="y"?"height":"width",S=i.reference[m]-i.floating[g]+w.mainAxis,C=i.reference[m]+i.reference[g]-w.mainAxis;dC&&(d=C)}if(u){var h,p;const g=m==="y"?"width":"height",S=Tm.has(Xt(o)),C=i.reference[f]-i.floating[g]+(S&&((h=s.offset)==null?void 0:h[f])||0)+(S?0:w.crossAxis),b=i.reference[f]+i.reference[g]+(S?0:((p=s.offset)==null?void 0:p[f])||0)-(S?w.crossAxis:0);Eb&&(E=b)}return{[m]:d,[f]:E}}}},Gx=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:l}=t,{apply:a=()=>{},...u}=Gt(e,t),c=await qo(t,u),f=Xt(o),m=io(o),d=Ot(o)==="y",{width:E,height:v}=i.floating;let w,h;f==="top"||f==="bottom"?(w=f,h=m===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(h=f,w=m==="end"?"top":"bottom");const p=v-c.top-c.bottom,g=E-c.left-c.right,S=Ln(v-c[w],p),C=Ln(E-c[h],g),b=!t.middlewareData.shift;let k=S,N=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(N=g),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(k=p),b&&!m){const A=Ye(c.left,0),F=Ye(c.right,0),z=Ye(c.top,0),Q=Ye(c.bottom,0);d?N=E-2*(A!==0||F!==0?A+F:Ye(c.left,c.right)):k=v-2*(z!==0||Q!==0?z+Q:Ye(c.top,c.bottom))}await a({...t,availableWidth:N,availableHeight:k});const L=await s.getDimensions(l.floating);return E!==L.width||v!==L.height?{reset:{rects:!0}}:{}}}};function Gs(){return typeof window<"u"}function so(e){return Nm(e)?(e.nodeName||"").toLowerCase():"#document"}function qe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function It(e){var t;return(t=(Nm(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Nm(e){return Gs()?e instanceof Node||e instanceof qe(e).Node:!1}function Ct(e){return Gs()?e instanceof Element||e instanceof qe(e).Element:!1}function Mt(e){return Gs()?e instanceof HTMLElement||e instanceof qe(e).HTMLElement:!1}function Wd(e){return!Gs()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof qe(e).ShadowRoot}const Xx=new Set(["inline","contents"]);function di(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=bt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Xx.has(o)}const qx=new Set(["table","td","th"]);function Zx(e){return qx.has(so(e))}const Jx=[":popover-open",":modal"];function Xs(e){return Jx.some(t=>{try{return e.matches(t)}catch{return!1}})}const e1=["transform","translate","scale","rotate","perspective"],t1=["transform","translate","scale","rotate","perspective","filter"],n1=["paint","layout","strict","content"];function nc(e){const t=rc(),n=Ct(e)?bt(e):e;return e1.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||t1.some(r=>(n.willChange||"").includes(r))||n1.some(r=>(n.contain||"").includes(r))}function r1(e){let t=Mn(e);for(;Mt(t)&&!Jr(t);){if(nc(t))return t;if(Xs(t))return null;t=Mn(t)}return null}function rc(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const o1=new Set(["html","body","#document"]);function Jr(e){return o1.has(so(e))}function bt(e){return qe(e).getComputedStyle(e)}function qs(e){return Ct(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Mn(e){if(so(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Wd(e)&&e.host||It(e);return Wd(t)?t.host:t}function Rm(e){const t=Mn(e);return Jr(t)?e.ownerDocument?e.ownerDocument.body:e.body:Mt(t)&&di(t)?t:Rm(t)}function Zo(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Rm(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=qe(o);if(i){const l=Va(s);return t.concat(s,s.visualViewport||[],di(o)?o:[],l&&n?Zo(l):[])}return t.concat(o,Zo(o,[],n))}function Va(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function jm(e){const t=bt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Mt(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,l=Cs(n)!==i||Cs(r)!==s;return l&&(n=i,r=s),{width:n,height:r,$:l}}function oc(e){return Ct(e)?e:e.contextElement}function Ir(e){const t=oc(e);if(!Mt(t))return Lt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=jm(t);let s=(i?Cs(n.width):n.width)/r,l=(i?Cs(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const i1=Lt(0);function Om(e){const t=qe(e);return!rc()||!t.visualViewport?i1:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function s1(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==qe(e)?!1:t}function sr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=oc(e);let s=Lt(1);t&&(r?Ct(r)&&(s=Ir(r)):s=Ir(e));const l=s1(i,n,r)?Om(i):Lt(0);let a=(o.left+l.x)/s.x,u=(o.top+l.y)/s.y,c=o.width/s.x,f=o.height/s.y;if(i){const m=qe(i),d=r&&Ct(r)?qe(r):r;let E=m,v=Va(E);for(;v&&r&&d!==E;){const w=Ir(v),h=v.getBoundingClientRect(),p=bt(v),g=h.left+(v.clientLeft+parseFloat(p.paddingLeft))*w.x,S=h.top+(v.clientTop+parseFloat(p.paddingTop))*w.y;a*=w.x,u*=w.y,c*=w.x,f*=w.y,a+=g,u+=S,E=qe(v),v=Va(E)}}return ks({width:c,height:f,x:a,y:u})}function ic(e,t){const n=qs(e).scrollLeft;return t?t.left+n:sr(It(e)).left+n}function Am(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:ic(e,r)),i=r.top+t.scrollTop;return{x:o,y:i}}function l1(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=It(r),l=t?Xs(t.floating):!1;if(r===s||l&&i)return n;let a={scrollLeft:0,scrollTop:0},u=Lt(1);const c=Lt(0),f=Mt(r);if((f||!f&&!i)&&((so(r)!=="body"||di(s))&&(a=qs(r)),Mt(r))){const d=sr(r);u=Ir(r),c.x=d.x+r.clientLeft,c.y=d.y+r.clientTop}const m=s&&!f&&!i?Am(s,a,!0):Lt(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-a.scrollLeft*u.x+c.x+m.x,y:n.y*u.y-a.scrollTop*u.y+c.y+m.y}}function a1(e){return Array.from(e.getClientRects())}function u1(e){const t=It(e),n=qs(e),r=e.ownerDocument.body,o=Ye(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Ye(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+ic(e);const l=-n.scrollTop;return bt(r).direction==="rtl"&&(s+=Ye(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:l}}function c1(e,t){const n=qe(e),r=It(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,l=0,a=0;if(o){i=o.width,s=o.height;const u=rc();(!u||u&&t==="fixed")&&(l=o.offsetLeft,a=o.offsetTop)}return{width:i,height:s,x:l,y:a}}const d1=new Set(["absolute","fixed"]);function f1(e,t){const n=sr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Mt(e)?Ir(e):Lt(1),s=e.clientWidth*i.x,l=e.clientHeight*i.y,a=o*i.x,u=r*i.y;return{width:s,height:l,x:a,y:u}}function Hd(e,t,n){let r;if(t==="viewport")r=c1(e,n);else if(t==="document")r=u1(It(e));else if(Ct(t))r=f1(t,n);else{const o=Om(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return ks(r)}function _m(e,t){const n=Mn(e);return n===t||!Ct(n)||Jr(n)?!1:bt(n).position==="fixed"||_m(n,t)}function p1(e,t){const n=t.get(e);if(n)return n;let r=Zo(e,[],!1).filter(l=>Ct(l)&&so(l)!=="body"),o=null;const i=bt(e).position==="fixed";let s=i?Mn(e):e;for(;Ct(s)&&!Jr(s);){const l=bt(s),a=nc(s);!a&&l.position==="fixed"&&(o=null),(i?!a&&!o:!a&&l.position==="static"&&!!o&&d1.has(o.position)||di(s)&&!a&&_m(e,s))?r=r.filter(c=>c!==s):o=l,s=Mn(s)}return t.set(e,r),r}function h1(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Xs(t)?[]:p1(t,this._c):[].concat(n),r],l=s[0],a=s.reduce((u,c)=>{const f=Hd(t,c,o);return u.top=Ye(f.top,u.top),u.right=Ln(f.right,u.right),u.bottom=Ln(f.bottom,u.bottom),u.left=Ye(f.left,u.left),u},Hd(t,l,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function m1(e){const{width:t,height:n}=jm(e);return{width:t,height:n}}function g1(e,t,n){const r=Mt(t),o=It(t),i=n==="fixed",s=sr(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const a=Lt(0);function u(){a.x=ic(o)}if(r||!r&&!i)if((so(t)!=="body"||di(o))&&(l=qs(t)),r){const d=sr(t,!0,i,t);a.x=d.x+t.clientLeft,a.y=d.y+t.clientTop}else o&&u();i&&!r&&o&&u();const c=o&&!r&&!i?Am(o,l):Lt(0),f=s.left+l.scrollLeft-a.x-c.x,m=s.top+l.scrollTop-a.y-c.y;return{x:f,y:m,width:s.width,height:s.height}}function Fl(e){return bt(e).position==="static"}function Qd(e,t){if(!Mt(e)||bt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return It(e)===n&&(n=n.ownerDocument.body),n}function Lm(e,t){const n=qe(e);if(Xs(e))return n;if(!Mt(e)){let o=Mn(e);for(;o&&!Jr(o);){if(Ct(o)&&!Fl(o))return o;o=Mn(o)}return n}let r=Qd(e,t);for(;r&&Zx(r)&&Fl(r);)r=Qd(r,t);return r&&Jr(r)&&Fl(r)&&!nc(r)?n:r||r1(e)||n}const v1=async function(e){const t=this.getOffsetParent||Lm,n=this.getDimensions,r=await n(e.floating);return{reference:g1(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function y1(e){return bt(e).direction==="rtl"}const w1={convertOffsetParentRelativeRectToViewportRelativeRect:l1,getDocumentElement:It,getClippingRect:h1,getOffsetParent:Lm,getElementRects:v1,getClientRects:a1,getDimensions:m1,getScale:Ir,isElement:Ct,isRTL:y1};function Mm(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function x1(e,t){let n=null,r;const o=It(e);function i(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function s(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),i();const u=e.getBoundingClientRect(),{left:c,top:f,width:m,height:d}=u;if(l||t(),!m||!d)return;const E=Ii(f),v=Ii(o.clientWidth-(c+m)),w=Ii(o.clientHeight-(f+d)),h=Ii(c),g={rootMargin:-E+"px "+-v+"px "+-w+"px "+-h+"px",threshold:Ye(0,Ln(1,a))||1};let S=!0;function C(b){const k=b[0].intersectionRatio;if(k!==a){if(!S)return s();k?s(!1,k):r=setTimeout(()=>{s(!1,1e-7)},1e3)}k===1&&!Mm(u,e.getBoundingClientRect())&&s(),S=!1}try{n=new IntersectionObserver(C,{...g,root:o.ownerDocument})}catch{n=new IntersectionObserver(C,g)}n.observe(e)}return s(!0),i}function S1(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,u=oc(e),c=o||i?[...u?Zo(u):[],...Zo(t)]:[];c.forEach(h=>{o&&h.addEventListener("scroll",n,{passive:!0}),i&&h.addEventListener("resize",n)});const f=u&&l?x1(u,n):null;let m=-1,d=null;s&&(d=new ResizeObserver(h=>{let[p]=h;p&&p.target===u&&d&&(d.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var g;(g=d)==null||g.observe(t)})),n()}),u&&!a&&d.observe(u),d.observe(t));let E,v=a?sr(e):null;a&&w();function w(){const h=sr(e);v&&!Mm(v,h)&&n(),v=h,E=requestAnimationFrame(w)}return n(),()=>{var h;c.forEach(p=>{o&&p.removeEventListener("scroll",n),i&&p.removeEventListener("resize",n)}),f==null||f(),(h=d)==null||h.disconnect(),d=null,a&&cancelAnimationFrame(E)}}const E1=Qx,C1=Kx,b1=Vx,k1=Gx,P1=Wx,Kd=Ux,T1=Yx,N1=(e,t,n)=>{const r=new Map,o={platform:w1,...n},i={...o.platform,_c:r};return Bx(e,t,{...o,platform:i})};var R1=typeof document<"u",j1=function(){},Zi=R1?x.useLayoutEffect:j1;function Ps(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Ps(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!Ps(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Im(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Yd(e,t){const n=Im(e);return Math.round(t*n)/n}function $l(e){const t=x.useRef(e);return Zi(()=>{t.current=e}),t}function O1(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:l=!0,whileElementsMounted:a,open:u}=e,[c,f]=x.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,d]=x.useState(r);Ps(m,r)||d(r);const[E,v]=x.useState(null),[w,h]=x.useState(null),p=x.useCallback(T=>{T!==b.current&&(b.current=T,v(T))},[]),g=x.useCallback(T=>{T!==k.current&&(k.current=T,h(T))},[]),S=i||E,C=s||w,b=x.useRef(null),k=x.useRef(null),N=x.useRef(c),L=a!=null,A=$l(a),F=$l(o),z=$l(u),Q=x.useCallback(()=>{if(!b.current||!k.current)return;const T={placement:t,strategy:n,middleware:m};F.current&&(T.platform=F.current),N1(b.current,k.current,T).then(R=>{const M={...R,isPositioned:z.current!==!1};_.current&&!Ps(N.current,M)&&(N.current=M,ui.flushSync(()=>{f(M)}))})},[m,t,n,F,z]);Zi(()=>{u===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,f(T=>({...T,isPositioned:!1})))},[u]);const _=x.useRef(!1);Zi(()=>(_.current=!0,()=>{_.current=!1}),[]),Zi(()=>{if(S&&(b.current=S),C&&(k.current=C),S&&C){if(A.current)return A.current(S,C,Q);Q()}},[S,C,Q,A,L]);const G=x.useMemo(()=>({reference:b,floating:k,setReference:p,setFloating:g}),[p,g]),B=x.useMemo(()=>({reference:S,floating:C}),[S,C]),V=x.useMemo(()=>{const T={position:n,left:0,top:0};if(!B.floating)return T;const R=Yd(B.floating,c.x),M=Yd(B.floating,c.y);return l?{...T,transform:"translate("+R+"px, "+M+"px)",...Im(B.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:R,top:M}},[n,l,B.floating,c.x,c.y]);return x.useMemo(()=>({...c,update:Q,refs:G,elements:B,floatingStyles:V}),[c,Q,G,B,V])}const A1=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Kd({element:r.current,padding:o}).fn(n):{}:r?Kd({element:r,padding:o}).fn(n):{}}}},_1=(e,t)=>({...E1(e),options:[e,t]}),L1=(e,t)=>({...C1(e),options:[e,t]}),M1=(e,t)=>({...T1(e),options:[e,t]}),I1=(e,t)=>({...b1(e),options:[e,t]}),z1=(e,t)=>({...k1(e),options:[e,t]}),D1=(e,t)=>({...P1(e),options:[e,t]}),F1=(e,t)=>({...A1(e),options:[e,t]});var $1="Arrow",zm=x.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return y.jsx(We.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:y.jsx("polygon",{points:"0,0 30,0 15,10"})})});zm.displayName=$1;var B1=zm;function U1(e){const[t,n]=x.useState(void 0);return _n(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,l;if("borderBoxSize"in i){const a=i.borderBoxSize,u=Array.isArray(a)?a[0]:a;s=u.inlineSize,l=u.blockSize}else s=e.offsetWidth,l=e.offsetHeight;n({width:s,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Dm="Popper",[Fm,$m]=Qs(Dm),[ZE,Bm]=Fm(Dm),Um="PopperAnchor",Vm=x.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Bm(Um,n),s=x.useRef(null),l=Et(t,s);return x.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:y.jsx(We.div,{...o,ref:l})});Vm.displayName=Um;var sc="PopperContent",[V1,W1]=Fm(sc),Wm=x.forwardRef((e,t)=>{var J,cr,Zt,Fn,Jt,dr;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:l=0,avoidCollisions:a=!0,collisionBoundary:u=[],collisionPadding:c=0,sticky:f="partial",hideWhenDetached:m=!1,updatePositionStrategy:d="optimized",onPlaced:E,...v}=e,w=Bm(sc,n),[h,p]=x.useState(null),g=Et(t,en=>p(en)),[S,C]=x.useState(null),b=U1(S),k=(b==null?void 0:b.width)??0,N=(b==null?void 0:b.height)??0,L=r+(i!=="center"?"-"+i:""),A=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},F=Array.isArray(u)?u:[u],z=F.length>0,Q={padding:A,boundary:F.filter(Q1),altBoundary:z},{refs:_,floatingStyles:G,placement:B,isPositioned:V,middlewareData:T}=O1({strategy:"fixed",placement:L,whileElementsMounted:(...en)=>S1(...en,{animationFrame:d==="always"}),elements:{reference:w.anchor},middleware:[_1({mainAxis:o+N,alignmentAxis:s}),a&&L1({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?M1():void 0,...Q}),a&&I1({...Q}),z1({...Q,apply:({elements:en,rects:fi,availableWidth:ol,availableHeight:pi})=>{const{width:il,height:lo}=fi.reference,fr=en.floating.style;fr.setProperty("--radix-popper-available-width",`${ol}px`),fr.setProperty("--radix-popper-available-height",`${pi}px`),fr.setProperty("--radix-popper-anchor-width",`${il}px`),fr.setProperty("--radix-popper-anchor-height",`${lo}px`)}}),S&&F1({element:S,padding:l}),K1({arrowWidth:k,arrowHeight:N}),m&&D1({strategy:"referenceHidden",...Q})]}),[R,M]=Km(B),W=An(E);_n(()=>{V&&(W==null||W())},[V,W]);const D=(J=T.arrow)==null?void 0:J.x,K=(cr=T.arrow)==null?void 0:cr.y,X=((Zt=T.arrow)==null?void 0:Zt.centerOffset)!==0,[he,Pe]=x.useState();return _n(()=>{h&&Pe(window.getComputedStyle(h).zIndex)},[h]),y.jsx("div",{ref:_.setFloating,"data-radix-popper-content-wrapper":"",style:{...G,transform:V?G.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:he,"--radix-popper-transform-origin":[(Fn=T.transformOrigin)==null?void 0:Fn.x,(Jt=T.transformOrigin)==null?void 0:Jt.y].join(" "),...((dr=T.hide)==null?void 0:dr.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:y.jsx(V1,{scope:n,placedSide:R,onArrowChange:C,arrowX:D,arrowY:K,shouldHideArrow:X,children:y.jsx(We.div,{"data-side":R,"data-align":M,...v,ref:g,style:{...v.style,animation:V?void 0:"none"}})})})});Wm.displayName=sc;var Hm="PopperArrow",H1={top:"bottom",right:"left",bottom:"top",left:"right"},Qm=x.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=W1(Hm,r),s=H1[i.placedSide];return y.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:y.jsx(B1,{...o,ref:n,style:{...o.style,display:"block"}})})});Qm.displayName=Hm;function Q1(e){return e!==null}var K1=e=>({name:"transformOrigin",options:e,fn(t){var w,h,p;const{placement:n,rects:r,middlewareData:o}=t,s=((w=o.arrow)==null?void 0:w.centerOffset)!==0,l=s?0:e.arrowWidth,a=s?0:e.arrowHeight,[u,c]=Km(n),f={start:"0%",center:"50%",end:"100%"}[c],m=(((h=o.arrow)==null?void 0:h.x)??0)+l/2,d=(((p=o.arrow)==null?void 0:p.y)??0)+a/2;let E="",v="";return u==="bottom"?(E=s?f:`${m}px`,v=`${-a}px`):u==="top"?(E=s?f:`${m}px`,v=`${r.floating.height+a}px`):u==="right"?(E=`${-a}px`,v=s?f:`${d}px`):u==="left"&&(E=`${r.floating.width+a}px`,v=s?f:`${d}px`),{data:{x:E,y:v}}}});function Km(e){const[t,n="center"]=e.split("-");return[t,n]}var Y1=Vm,G1=Wm,X1=Qm,[Zs,JE]=Qs("Tooltip",[$m]),lc=$m(),Ym="TooltipProvider",q1=700,Gd="tooltip.open",[Z1,Gm]=Zs(Ym),Xm=e=>{const{__scopeTooltip:t,delayDuration:n=q1,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,s=x.useRef(!0),l=x.useRef(!1),a=x.useRef(0);return x.useEffect(()=>{const u=a.current;return()=>window.clearTimeout(u)},[]),y.jsx(Z1,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:x.useCallback(()=>{window.clearTimeout(a.current),s.current=!1},[]),onClose:x.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:x.useCallback(u=>{l.current=u},[]),disableHoverableContent:o,children:i})};Xm.displayName=Ym;var qm="Tooltip",[e2,Js]=Zs(qm),Wa="TooltipTrigger",J1=x.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Js(Wa,n),i=Gm(Wa,n),s=lc(n),l=x.useRef(null),a=Et(t,l,o.onTriggerChange),u=x.useRef(!1),c=x.useRef(!1),f=x.useCallback(()=>u.current=!1,[]);return x.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),y.jsx(Y1,{asChild:!0,...s,children:y.jsx(We.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:a,onPointerMove:ve(e.onPointerMove,m=>{m.pointerType!=="touch"&&!c.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),c.current=!0)}),onPointerLeave:ve(e.onPointerLeave,()=>{o.onTriggerLeave(),c.current=!1}),onPointerDown:ve(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:ve(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:ve(e.onBlur,o.onClose),onClick:ve(e.onClick,o.onClose)})})});J1.displayName=Wa;var eS="TooltipPortal",[t2,tS]=Zs(eS,{forceMount:void 0}),eo="TooltipContent",Zm=x.forwardRef((e,t)=>{const n=tS(eo,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,s=Js(eo,e.__scopeTooltip);return y.jsx(Yu,{present:r||s.open,children:s.disableHoverableContent?y.jsx(Jm,{side:o,...i,ref:t}):y.jsx(nS,{side:o,...i,ref:t})})}),nS=x.forwardRef((e,t)=>{const n=Js(eo,e.__scopeTooltip),r=Gm(eo,e.__scopeTooltip),o=x.useRef(null),i=Et(t,o),[s,l]=x.useState(null),{trigger:a,onClose:u}=n,c=o.current,{onPointerInTransitChange:f}=r,m=x.useCallback(()=>{l(null),f(!1)},[f]),d=x.useCallback((E,v)=>{const w=E.currentTarget,h={x:E.clientX,y:E.clientY},p=lS(h,w.getBoundingClientRect()),g=aS(h,p),S=uS(v.getBoundingClientRect()),C=dS([...g,...S]);l(C),f(!0)},[f]);return x.useEffect(()=>()=>m(),[m]),x.useEffect(()=>{if(a&&c){const E=w=>d(w,c),v=w=>d(w,a);return a.addEventListener("pointerleave",E),c.addEventListener("pointerleave",v),()=>{a.removeEventListener("pointerleave",E),c.removeEventListener("pointerleave",v)}}},[a,c,d,m]),x.useEffect(()=>{if(s){const E=v=>{const w=v.target,h={x:v.clientX,y:v.clientY},p=(a==null?void 0:a.contains(w))||(c==null?void 0:c.contains(w)),g=!cS(h,s);p?m():g&&(m(),u())};return document.addEventListener("pointermove",E),()=>document.removeEventListener("pointermove",E)}},[a,c,s,u,m]),y.jsx(Jm,{...e,ref:i})}),[rS,oS]=Zs(qm,{isInside:!1}),iS=u0("TooltipContent"),Jm=x.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:s,...l}=e,a=Js(eo,n),u=lc(n),{onClose:c}=a;return x.useEffect(()=>(document.addEventListener(Gd,c),()=>document.removeEventListener(Gd,c)),[c]),x.useEffect(()=>{if(a.trigger){const f=m=>{const d=m.target;d!=null&&d.contains(a.trigger)&&c()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[a.trigger,c]),y.jsx(Ku,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:f=>f.preventDefault(),onDismiss:c,children:y.jsxs(G1,{"data-state":a.stateAttribute,...u,...l,ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[y.jsx(iS,{children:r}),y.jsx(rS,{scope:n,isInside:!0,children:y.jsx(L0,{id:a.contentId,role:"tooltip",children:o||r})})]})})});Zm.displayName=eo;var eg="TooltipArrow",sS=x.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=lc(n);return oS(eg,n).isInside?null:y.jsx(X1,{...o,...r,ref:t})});sS.displayName=eg;function lS(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function aS(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function uS(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function cS(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;ir!=m>r&&n<(f-u)*(r-c)/(m-c)+u&&(o=!o)}return o}function dS(e){const t=e.slice();return t.sort((n,r)=>n.xr.x?1:n.yr.y?1:0),fS(t)}function fS(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var pS=Xm,tg=Zm;const hS=pS,mS=x.forwardRef(({className:e,sideOffset:t=4,...n},r)=>y.jsx(tg,{ref:r,sideOffset:t,className:ur("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));mS.displayName=tg.displayName;var el=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Kn,pn,Dr,mf,gS=(mf=class extends el{constructor(){super();q(this,Kn);q(this,pn);q(this,Dr);$(this,Dr,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){P(this,pn)||this.setEventListener(P(this,Dr))}onUnsubscribe(){var t;this.hasListeners()||((t=P(this,pn))==null||t.call(this),$(this,pn,void 0))}setEventListener(t){var n;$(this,Dr,t),(n=P(this,pn))==null||n.call(this),$(this,pn,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){P(this,Kn)!==t&&($(this,Kn,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof P(this,Kn)=="boolean"?P(this,Kn):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Kn=new WeakMap,pn=new WeakMap,Dr=new WeakMap,mf),ng=new gS,vS={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},hn,Za,gf,yS=(gf=class{constructor(){q(this,hn,vS);q(this,Za,!1)}setTimeoutProvider(e){$(this,hn,e)}setTimeout(e,t){return P(this,hn).setTimeout(e,t)}clearTimeout(e){P(this,hn).clearTimeout(e)}setInterval(e,t){return P(this,hn).setInterval(e,t)}clearInterval(e){P(this,hn).clearInterval(e)}},hn=new WeakMap,Za=new WeakMap,gf),Ha=new yS;function wS(e){setTimeout(e,0)}var xS=typeof window>"u"||"Deno"in globalThis;function mt(){}function SS(e,t){return typeof e=="function"?e(t):e}function ES(e){return typeof e=="number"&&e>=0&&e!==1/0}function CS(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Qa(e,t){return typeof e=="function"?e(t):e}function bS(e,t){return typeof e=="function"?e(t):e}function Xd(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:s,stale:l}=e;if(s){if(r){if(t.queryHash!==ac(s,t.options))return!1}else if(!ei(t.queryKey,s))return!1}if(n!=="all"){const a=t.isActive();if(n==="active"&&!a||n==="inactive"&&a)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||o&&o!==t.state.fetchStatus||i&&!i(t))}function qd(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Jo(t.options.mutationKey)!==Jo(i))return!1}else if(!ei(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function ac(e,t){return((t==null?void 0:t.queryKeyHashFn)||Jo)(e)}function Jo(e){return JSON.stringify(e,(t,n)=>Ka(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function ei(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>ei(e[n],t[n])):!1}var kS=Object.prototype.hasOwnProperty;function rg(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=Zd(e)&&Zd(t);if(!r&&!(Ka(e)&&Ka(t)))return t;const i=(r?e:Object.keys(e)).length,s=r?t:Object.keys(t),l=s.length,a=r?new Array(l):{};let u=0;for(let c=0;c{Ha.setTimeout(t,e)})}function TS(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?rg(e,t):t}function NS(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function RS(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var uc=Symbol();function og(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===uc?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function jS(e,t,n){let r=!1,o;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(o??(o=t()),r||(r=!0,o.aborted?n():o.addEventListener("abort",n,{once:!0})),o)}),e}var ig=(()=>{let e=()=>xS;return{isServer(){return e()},setIsServer(t){e=t}}})();function OS(){let e,t;const n=new Promise((o,i)=>{e=o,t=i});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}var AS=wS;function _S(){let e=[],t=0,n=l=>{l()},r=l=>{l()},o=AS;const i=l=>{t?e.push(l):o(()=>{n(l)})},s=()=>{const l=e;e=[],l.length&&o(()=>{r(()=>{l.forEach(a=>{n(a)})})})};return{batch:l=>{let a;t++;try{a=l()}finally{t--,t||s()}return a},batchCalls:l=>(...a)=>{i(()=>{l(...a)})},schedule:i,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{o=l}}}var _e=_S(),Fr,mn,$r,vf,LS=(vf=class extends el{constructor(){super();q(this,Fr,!0);q(this,mn);q(this,$r);$(this,$r,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){P(this,mn)||this.setEventListener(P(this,$r))}onUnsubscribe(){var t;this.hasListeners()||((t=P(this,mn))==null||t.call(this),$(this,mn,void 0))}setEventListener(t){var n;$(this,$r,t),(n=P(this,mn))==null||n.call(this),$(this,mn,t(this.setOnline.bind(this)))}setOnline(t){P(this,Fr)!==t&&($(this,Fr,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return P(this,Fr)}},Fr=new WeakMap,mn=new WeakMap,$r=new WeakMap,vf),Ts=new LS;function MS(e){return Math.min(1e3*2**e,3e4)}function sg(e){return(e??"online")==="online"?Ts.isOnline():!0}var Ya=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function lg(e){let t=!1,n=0,r;const o=OS(),i=()=>o.status!=="pending",s=v=>{var w;if(!i()){const h=new Ya(v);m(h),(w=e.onCancel)==null||w.call(e,h)}},l=()=>{t=!0},a=()=>{t=!1},u=()=>ng.isFocused()&&(e.networkMode==="always"||Ts.isOnline())&&e.canRun(),c=()=>sg(e.networkMode)&&e.canRun(),f=v=>{i()||(r==null||r(),o.resolve(v))},m=v=>{i()||(r==null||r(),o.reject(v))},d=()=>new Promise(v=>{var w;r=h=>{(i()||u())&&v(h)},(w=e.onPause)==null||w.call(e)}).then(()=>{var v;r=void 0,i()||(v=e.onContinue)==null||v.call(e)}),E=()=>{if(i())return;let v;const w=n===0?e.initialPromise:void 0;try{v=w??e.fn()}catch(h){v=Promise.reject(h)}Promise.resolve(v).then(f).catch(h=>{var b;if(i())return;const p=e.retry??(ig.isServer()?0:3),g=e.retryDelay??MS,S=typeof g=="function"?g(n,h):g,C=p===!0||typeof p=="number"&&nu()?void 0:d()).then(()=>{t?m(h):E()})})};return{promise:o,status:()=>o.status,cancel:s,continue:()=>(r==null||r(),o),cancelRetry:l,continueRetry:a,canStart:c,start:()=>(c()?E():d().then(E),o)}}var Yn,yf,ag=(yf=class{constructor(){q(this,Yn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ES(this.gcTime)&&$(this,Yn,Ha.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(ig.isServer()?1/0:5*60*1e3))}clearGcTimeout(){P(this,Yn)&&(Ha.clearTimeout(P(this,Yn)),$(this,Yn,void 0))}},Yn=new WeakMap,yf),Gn,Br,nt,Xn,we,ti,qn,Ke,ug,Dt,wf,IS=(wf=class extends ag{constructor(t){super();q(this,Ke);q(this,Gn);q(this,Br);q(this,nt);q(this,Xn);q(this,we);q(this,ti);q(this,qn);$(this,qn,!1),$(this,ti,t.defaultOptions),this.setOptions(t.options),this.observers=[],$(this,Xn,t.client),$(this,nt,P(this,Xn).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,$(this,Gn,tf(this.options)),this.state=t.state??P(this,Gn),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=P(this,we))==null?void 0:t.promise}setOptions(t){if(this.options={...P(this,ti),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=tf(this.options);n.data!==void 0&&(this.setState(ef(n.data,n.dataUpdatedAt)),$(this,Gn,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&P(this,nt).remove(this)}setData(t,n){const r=TS(this.state.data,t,this.options);return Ee(this,Ke,Dt).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Ee(this,Ke,Dt).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=P(this,we))==null?void 0:r.promise;return(o=P(this,we))==null||o.cancel(t),n?n.then(mt).catch(mt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return P(this,Gn)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>bS(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===uc||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Qa(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!CS(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=P(this,we))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=P(this,we))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),P(this,nt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(P(this,we)&&(P(this,qn)||Ee(this,Ke,ug).call(this)?P(this,we).cancel({revert:!0}):P(this,we).cancelRetry()),this.scheduleGc()),P(this,nt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ee(this,Ke,Dt).call(this,{type:"invalidate"})}async fetch(t,n){var a,u,c,f,m,d,E,v,w,h,p,g;if(this.state.fetchStatus!=="idle"&&((a=P(this,we))==null?void 0:a.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(P(this,we))return P(this,we).continueRetry(),P(this,we).promise}if(t&&this.setOptions(t),!this.options.queryFn){const S=this.observers.find(C=>C.options.queryFn);S&&this.setOptions(S.options)}const r=new AbortController,o=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>($(this,qn,!0),r.signal)})},i=()=>{const S=og(this.options,n),b=(()=>{const k={client:P(this,Xn),queryKey:this.queryKey,meta:this.meta};return o(k),k})();return $(this,qn,!1),this.options.persister?this.options.persister(S,b,this):S(b)},l=(()=>{const S={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:P(this,Xn),state:this.state,fetchFn:i};return o(S),S})();(u=this.options.behavior)==null||u.onFetch(l,this),$(this,Br,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=l.fetchOptions)==null?void 0:c.meta))&&Ee(this,Ke,Dt).call(this,{type:"fetch",meta:(f=l.fetchOptions)==null?void 0:f.meta}),$(this,we,lg({initialPromise:n==null?void 0:n.initialPromise,fn:l.fetchFn,onCancel:S=>{S instanceof Ya&&S.revert&&this.setState({...P(this,Br),fetchStatus:"idle"}),r.abort()},onFail:(S,C)=>{Ee(this,Ke,Dt).call(this,{type:"failed",failureCount:S,error:C})},onPause:()=>{Ee(this,Ke,Dt).call(this,{type:"pause"})},onContinue:()=>{Ee(this,Ke,Dt).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0}));try{const S=await P(this,we).start();if(S===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(S),(d=(m=P(this,nt).config).onSuccess)==null||d.call(m,S,this),(v=(E=P(this,nt).config).onSettled)==null||v.call(E,S,this.state.error,this),S}catch(S){if(S instanceof Ya){if(S.silent)return P(this,we).promise;if(S.revert){if(this.state.data===void 0)throw S;return this.state.data}}throw Ee(this,Ke,Dt).call(this,{type:"error",error:S}),(h=(w=P(this,nt).config).onError)==null||h.call(w,S,this),(g=(p=P(this,nt).config).onSettled)==null||g.call(p,this.state.data,S,this),S}finally{this.scheduleGc()}}},Gn=new WeakMap,Br=new WeakMap,nt=new WeakMap,Xn=new WeakMap,we=new WeakMap,ti=new WeakMap,qn=new WeakMap,Ke=new WeakSet,ug=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},Dt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...zS(r.data,this.options),fetchMeta:t.meta??null};case"success":const o={...r,...ef(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return $(this,Br,t.manual?o:void 0),o;case"error":const i=t.error;return{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),_e.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),P(this,nt).notify({query:this,type:"updated",action:t})})},wf);function zS(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:sg(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function ef(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function tf(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}function nf(e){return{onFetch:(t,n)=>{var c,f,m,d,E;const r=t.options,o=(m=(f=(c=t.fetchOptions)==null?void 0:c.meta)==null?void 0:f.fetchMore)==null?void 0:m.direction,i=((d=t.state.data)==null?void 0:d.pages)||[],s=((E=t.state.data)==null?void 0:E.pageParams)||[];let l={pages:[],pageParams:[]},a=0;const u=async()=>{let v=!1;const w=g=>{jS(g,()=>t.signal,()=>v=!0)},h=og(t.options,t.fetchOptions),p=async(g,S,C)=>{if(v)return Promise.reject();if(S==null&&g.pages.length)return Promise.resolve(g);const k=(()=>{const F={client:t.client,queryKey:t.queryKey,pageParam:S,direction:C?"backward":"forward",meta:t.options.meta};return w(F),F})(),N=await h(k),{maxPages:L}=t.options,A=C?RS:NS;return{pages:A(g.pages,N,L),pageParams:A(g.pageParams,S,L)}};if(o&&i.length){const g=o==="backward",S=g?DS:rf,C={pages:i,pageParams:s},b=S(r,C);l=await p(C,b,g)}else{const g=e??i.length;do{const S=a===0?s[0]??r.initialPageParam:rf(r,l);if(a>0&&S==null)break;l=await p(l,S),a++}while(a{var v,w;return(w=(v=t.options).persister)==null?void 0:w.call(v,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function rf(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function DS(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var ni,Tt,Re,Zn,Nt,an,xf,FS=(xf=class extends ag{constructor(t){super();q(this,Nt);q(this,ni);q(this,Tt);q(this,Re);q(this,Zn);$(this,ni,t.client),this.mutationId=t.mutationId,$(this,Re,t.mutationCache),$(this,Tt,[]),this.state=t.state||$S(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){P(this,Tt).includes(t)||(P(this,Tt).push(t),this.clearGcTimeout(),P(this,Re).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){$(this,Tt,P(this,Tt).filter(n=>n!==t)),this.scheduleGc(),P(this,Re).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){P(this,Tt).length||(this.state.status==="pending"?this.scheduleGc():P(this,Re).remove(this))}continue(){var t;return((t=P(this,Zn))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,l,a,u,c,f,m,d,E,v,w,h,p,g,S,C,b,k;const n=()=>{Ee(this,Nt,an).call(this,{type:"continue"})},r={client:P(this,ni),meta:this.options.meta,mutationKey:this.options.mutationKey};$(this,Zn,lg({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(N,L)=>{Ee(this,Nt,an).call(this,{type:"failed",failureCount:N,error:L})},onPause:()=>{Ee(this,Nt,an).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>P(this,Re).canRun(this)}));const o=this.state.status==="pending",i=!P(this,Zn).canStart();try{if(o)n();else{Ee(this,Nt,an).call(this,{type:"pending",variables:t,isPaused:i}),P(this,Re).config.onMutate&&await P(this,Re).config.onMutate(t,this,r);const L=await((l=(s=this.options).onMutate)==null?void 0:l.call(s,t,r));L!==this.state.context&&Ee(this,Nt,an).call(this,{type:"pending",context:L,variables:t,isPaused:i})}const N=await P(this,Zn).start();return await((u=(a=P(this,Re).config).onSuccess)==null?void 0:u.call(a,N,t,this.state.context,this,r)),await((f=(c=this.options).onSuccess)==null?void 0:f.call(c,N,t,this.state.context,r)),await((d=(m=P(this,Re).config).onSettled)==null?void 0:d.call(m,N,null,this.state.variables,this.state.context,this,r)),await((v=(E=this.options).onSettled)==null?void 0:v.call(E,N,null,t,this.state.context,r)),Ee(this,Nt,an).call(this,{type:"success",data:N}),N}catch(N){try{await((h=(w=P(this,Re).config).onError)==null?void 0:h.call(w,N,t,this.state.context,this,r))}catch(L){Promise.reject(L)}try{await((g=(p=this.options).onError)==null?void 0:g.call(p,N,t,this.state.context,r))}catch(L){Promise.reject(L)}try{await((C=(S=P(this,Re).config).onSettled)==null?void 0:C.call(S,void 0,N,this.state.variables,this.state.context,this,r))}catch(L){Promise.reject(L)}try{await((k=(b=this.options).onSettled)==null?void 0:k.call(b,void 0,N,t,this.state.context,r))}catch(L){Promise.reject(L)}throw Ee(this,Nt,an).call(this,{type:"error",error:N}),N}finally{P(this,Re).runNext(this)}}},ni=new WeakMap,Tt=new WeakMap,Re=new WeakMap,Zn=new WeakMap,Nt=new WeakSet,an=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),_e.batch(()=>{P(this,Tt).forEach(r=>{r.onMutationUpdate(t)}),P(this,Re).notify({mutation:this,type:"updated",action:t})})},xf);function $S(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Bt,gt,ri,Sf,BS=(Sf=class extends el{constructor(t={}){super();q(this,Bt);q(this,gt);q(this,ri);this.config=t,$(this,Bt,new Set),$(this,gt,new Map),$(this,ri,0)}build(t,n,r){const o=new FS({client:t,mutationCache:this,mutationId:++mi(this,ri)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){P(this,Bt).add(t);const n=zi(t);if(typeof n=="string"){const r=P(this,gt).get(n);r?r.push(t):P(this,gt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(P(this,Bt).delete(t)){const n=zi(t);if(typeof n=="string"){const r=P(this,gt).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&P(this,gt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=zi(t);if(typeof n=="string"){const r=P(this,gt).get(n),o=r==null?void 0:r.find(i=>i.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=zi(t);if(typeof n=="string"){const o=(r=P(this,gt).get(n))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){_e.batch(()=>{P(this,Bt).forEach(t=>{this.notify({type:"removed",mutation:t})}),P(this,Bt).clear(),P(this,gt).clear()})}getAll(){return Array.from(P(this,Bt))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>qd(n,r))}findAll(t={}){return this.getAll().filter(n=>qd(t,n))}notify(t){_e.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return _e.batch(()=>Promise.all(t.map(n=>n.continue().catch(mt))))}},Bt=new WeakMap,gt=new WeakMap,ri=new WeakMap,Sf);function zi(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Rt,Ef,US=(Ef=class extends el{constructor(t={}){super();q(this,Rt);this.config=t,$(this,Rt,new Map)}build(t,n,r){const o=n.queryKey,i=n.queryHash??ac(o,n);let s=this.get(i);return s||(s=new IS({client:t,queryKey:o,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(s)),s}add(t){P(this,Rt).has(t.queryHash)||(P(this,Rt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=P(this,Rt).get(t.queryHash);n&&(t.destroy(),n===t&&P(this,Rt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){_e.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return P(this,Rt).get(t)}getAll(){return[...P(this,Rt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Xd(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Xd(t,r)):n}notify(t){_e.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){_e.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){_e.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Rt=new WeakMap,Ef),de,gn,vn,Ur,Vr,yn,Wr,Hr,Cf,VS=(Cf=class{constructor(e={}){q(this,de);q(this,gn);q(this,vn);q(this,Ur);q(this,Vr);q(this,yn);q(this,Wr);q(this,Hr);$(this,de,e.queryCache||new US),$(this,gn,e.mutationCache||new BS),$(this,vn,e.defaultOptions||{}),$(this,Ur,new Map),$(this,Vr,new Map),$(this,yn,0)}mount(){mi(this,yn)._++,P(this,yn)===1&&($(this,Wr,ng.subscribe(async e=>{e&&(await this.resumePausedMutations(),P(this,de).onFocus())})),$(this,Hr,Ts.subscribe(async e=>{e&&(await this.resumePausedMutations(),P(this,de).onOnline())})))}unmount(){var e,t;mi(this,yn)._--,P(this,yn)===0&&((e=P(this,Wr))==null||e.call(this),$(this,Wr,void 0),(t=P(this,Hr))==null||t.call(this),$(this,Hr,void 0))}isFetching(e){return P(this,de).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return P(this,gn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=P(this,de).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=P(this,de).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Qa(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return P(this,de).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=P(this,de).get(r.queryHash),i=o==null?void 0:o.state.data,s=SS(t,i);if(s!==void 0)return P(this,de).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return _e.batch(()=>P(this,de).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=P(this,de).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=P(this,de);_e.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=P(this,de);return _e.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=_e.batch(()=>P(this,de).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(mt).catch(mt)}invalidateQueries(e,t={}){return _e.batch(()=>(P(this,de).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=_e.batch(()=>P(this,de).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(mt)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(mt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=P(this,de).build(this,t);return n.isStaleByTime(Qa(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(mt).catch(mt)}fetchInfiniteQuery(e){return e.behavior=nf(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(mt).catch(mt)}ensureInfiniteQueryData(e){return e.behavior=nf(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Ts.isOnline()?P(this,gn).resumePausedMutations():Promise.resolve()}getQueryCache(){return P(this,de)}getMutationCache(){return P(this,gn)}getDefaultOptions(){return P(this,vn)}setDefaultOptions(e){$(this,vn,e)}setQueryDefaults(e,t){P(this,Ur).set(Jo(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...P(this,Ur).values()],n={};return t.forEach(r=>{ei(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){P(this,Vr).set(Jo(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...P(this,Vr).values()],n={};return t.forEach(r=>{ei(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...P(this,vn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=ac(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===uc&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...P(this,vn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){P(this,de).clear(),P(this,gn).clear()}},de=new WeakMap,gn=new WeakMap,vn=new WeakMap,Ur=new WeakMap,Vr=new WeakMap,yn=new WeakMap,Wr=new WeakMap,Hr=new WeakMap,Cf),WS=x.createContext(void 0),HS=({client:e,children:t})=>(x.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),y.jsx(WS.Provider,{value:e,children:t}));/** * @remix-run/router v1.23.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function Ns(){return Ns=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function cg(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function KS(){return Math.random().toString(36).substr(2,8)}function sf(e,t){return{usr:e.state,key:e.key,idx:t}}function Ga(e,t,n,r){return n===void 0&&(n=null),Ns({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?tl(t):t,{state:n,key:t&&t.key||r||KS()})}function dg(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function tl(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function YS(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,l=Sn.Pop,a=null,u=c();u==null&&(u=0,s.replaceState(Ns({},s.state,{idx:u}),""));function c(){return(s.state||{idx:null}).idx}function f(){l=Sn.Pop;let w=c(),h=w==null?null:w-u;u=w,a&&a({action:l,location:v.location,delta:h})}function m(w,h){l=Sn.Push;let p=Ga(v.location,w,h);u=c()+1;let g=sf(p,u),S=v.createHref(p);try{s.pushState(g,"",S)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;o.location.assign(S)}i&&a&&a({action:l,location:v.location,delta:1})}function d(w,h){l=Sn.Replace;let p=Ga(v.location,w,h);u=c();let g=sf(p,u),S=v.createHref(p);s.replaceState(g,"",S),i&&a&&a({action:l,location:v.location,delta:0})}function E(w){let h=o.location.origin!=="null"?o.location.origin:o.location.href,p=typeof w=="string"?w:dg(w);return p=p.replace(/ $/,"%20"),Ve(h,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,h)}let v={get action(){return l},get location(){return e(o,s)},listen(w){if(a)throw new Error("A history only accepts one active listener");return o.addEventListener(of,f),a=w,()=>{o.removeEventListener(of,f),a=null}},createHref(w){return t(o,w)},createURL:E,encodeLocation(w){let h=E(w);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:m,replace:d,go(w){return s.go(w)}};return v}var lf;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(lf||(lf={}));function GS(e,t,n){return n===void 0&&(n="/"),XS(e,t,n)}function XS(e,t,n,r){let o=typeof t=="string"?tl(t):t,i=hg(o.pathname||"/",n);if(i==null)return null;let s=fg(e);qS(s);let l=null;for(let a=0;l==null&&a{let a={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};a.relativePath.startsWith("/")&&(Ve(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(r.length));let u=zr([r,a.relativePath]),c=n.concat(a);i.children&&i.children.length>0&&(Ve(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),fg(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:oE(u,i.index),routesMeta:c})};return e.forEach((i,s)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))o(i,s);else for(let a of pg(i.path))o(i,s,a)}),t}function pg(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let s=pg(r.join("/")),l=[];return l.push(...s.map(a=>a===""?i:[i,a].join("/"))),o&&l.push(...s),l.map(a=>e.startsWith("/")&&a===""?"/":a)}function qS(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:iE(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const ZS=/^:[\w-]+$/,JS=3,eE=2,tE=1,nE=10,rE=-2,af=e=>e==="*";function oE(e,t){let n=e.split("/"),r=n.length;return n.some(af)&&(r+=rE),t&&(r+=eE),n.filter(o=>!af(o)).reduce((o,i)=>o+(ZS.test(i)?JS:i===""?tE:nE),r)}function iE(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function sE(e,t,n){let{routesMeta:r}=e,o={},i="/",s=[];for(let l=0;l{let{paramName:m,isOptional:d}=c;if(m==="*"){let v=l[f]||"";s=i.slice(0,i.length-v.length).replace(/(.)\/+$/,"$1")}const E=l[f];return d&&!E?u[m]=void 0:u[m]=(E||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:s,pattern:e}}function aE(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),cg(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,l,a)=>(r.push({paramName:l,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function uE(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return cg(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function hg(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const zr=e=>e.join("/").replace(/\/\/+/g,"/"),cE=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/");function dE(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const mg=["post","put","patch","delete"];new Set(mg);const fE=["get",...mg];new Set(fE);/** * React Router v6.30.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function Rs(){return Rs=Object.assign?Object.assign.bind():function(e){for(var t=1;tObject.assign({},w,{params:Object.assign({},l,w.params),pathname:zr([a,o.encodeLocation?o.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?a:zr([a,o.encodeLocation?o.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),i,n,r);return t&&v?x.createElement(nl.Provider,{value:{location:Rs({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Sn.Pop}},v):v}function vE(){let e=kE(),t=dE(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},t),n?x.createElement("pre",{style:o},n):null,null)}const yE=x.createElement(vE,null);class wE extends x.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?x.createElement(rl.Provider,{value:this.props.routeContext},x.createElement(vg.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function xE(e){let{routeContext:t,match:n,children:r}=e,o=x.useContext(pE);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),x.createElement(rl.Provider,{value:t},r)}function SE(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,l=(o=n)==null?void 0:o.errors;if(l!=null){let c=s.findIndex(f=>f.route.id&&(l==null?void 0:l[f.route.id])!==void 0);c>=0||Ve(!1),s=s.slice(0,Math.min(s.length,c+1))}let a=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((c,f,m)=>{let d,E=!1,v=null,w=null;n&&(d=l&&f.route.id?l[f.route.id]:void 0,v=f.route.errorElement||yE,a&&(u<0&&m===0?(PE("route-fallback"),E=!0,w=null):u===m&&(E=!0,w=f.route.hydrateFallbackElement||null)));let h=t.concat(s.slice(0,m+1)),p=()=>{let g;return d?g=v:E?g=w:f.route.Component?g=x.createElement(f.route.Component,null):f.route.element?g=f.route.element:g=c,x.createElement(xE,{match:f,routeContext:{outlet:c,matches:h,isDataRoute:n!=null},children:g})};return n&&(f.route.ErrorBoundary||f.route.errorElement||m===0)?x.createElement(wE,{location:n.location,revalidation:n.revalidation,component:v,error:d,children:p(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):p()},null)}var wg=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(wg||{});function EE(e){let t=x.useContext(hE);return t||Ve(!1),t}function CE(e){let t=x.useContext(rl);return t||Ve(!1),t}function bE(e){let t=CE(),n=t.matches[t.matches.length-1];return n.route.id||Ve(!1),n.route.id}function kE(){var e;let t=x.useContext(vg),n=EE(wg.UseRouteError),r=bE();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}const uf={};function PE(e,t,n){uf[e]||(uf[e]=!0)}function TE(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Xa(e){Ve(!1)}function NE(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Sn.Pop,navigator:i,static:s=!1,future:l}=e;cc()&&Ve(!1);let a=t.replace(/^\/*/,"/"),u=x.useMemo(()=>({basename:a,navigator:i,static:s,future:Rs({v7_relativeSplatPath:!1},l)}),[a,l,i,s]);typeof r=="string"&&(r=tl(r));let{pathname:c="/",search:f="",hash:m="",state:d=null,key:E="default"}=r,v=x.useMemo(()=>{let w=hg(c,a);return w==null?null:{location:{pathname:w,search:f,hash:m,state:d,key:E},navigationType:o}},[a,c,f,m,d,E,o]);return v==null?null:x.createElement(gg.Provider,{value:u},x.createElement(nl.Provider,{children:n,value:v}))}function RE(e){let{children:t,location:n}=e;return mE(qa(t),n)}new Promise(()=>{});function qa(e,t){t===void 0&&(t=[]);let n=[];return x.Children.forEach(e,(r,o)=>{if(!x.isValidElement(r))return;let i=[...t,o];if(r.type===x.Fragment){n.push.apply(n,qa(r.props.children,i));return}r.type!==Xa&&Ve(!1),!r.props.index||!r.props.children||Ve(!1);let s={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=qa(r.props.children,i)),n.push(s)}),n}/** * React Router DOM v6.30.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */const jE="6";try{window.__reactRouterVersion=jE}catch{}const OE="startTransition",cf=Mf[OE];function AE(e){let{basename:t,children:n,future:r,window:o}=e,i=x.useRef();i.current==null&&(i.current=QS({window:o,v5Compat:!0}));let s=i.current,[l,a]=x.useState({action:s.action,location:s.location}),{v7_startTransition:u}=r||{},c=x.useCallback(f=>{u&&cf?cf(()=>a(f)):a(f)},[a,u]);return x.useLayoutEffect(()=>s.listen(c),[s,c]),x.useEffect(()=>TE(r),[r]),x.createElement(NE,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:s,future:r})}var df;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(df||(df={}));var ff;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(ff||(ff={}));const pf=[{label:"Why Atlas",href:"#"},{label:"Services",href:"#"},{label:"How We Work",href:"#"},{label:"Insights",href:"#",active:!0}],_E=()=>{const[e,t]=x.useState(!1);return y.jsxs(y.Fragment,{children:[y.jsx("nav",{className:"sticky top-0 z-50 bg-white border-b border-atlas-border",style:{borderBottomColor:"hsl(220, 13%, 91%)"},children:y.jsxs("div",{className:"max-w-[1200px] mx-auto px-8 h-16 flex items-center justify-between",children:[y.jsxs("a",{href:"/",className:"flex items-center gap-2 group focus:outline-none focus-visible:ring-2 focus-visible:ring-[hsl(210,100%,36%)] rounded","aria-label":"ATLAS Home",children:[y.jsx("span",{className:"flex items-center justify-center w-8 h-8",children:y.jsx(Da,{size:28,className:"text-[hsl(210,100%,36%)]",strokeWidth:2.5})}),y.jsx("span",{className:"font-heading font-bold text-[22px] text-[hsl(220,43%,11%)] tracking-tight",style:{letterSpacing:"-0.5px"},children:"ATLAS"})]}),y.jsx("div",{className:"hidden md:flex items-center gap-8",children:pf.map(n=>y.jsx("a",{href:n.href,className:`font-body text-sm font-medium transition-colors duration-150 focus:outline-none focus-visible:ring-2 focus-visible:ring-[hsl(210,100%,36%)] rounded px-1 py-0.5 ${n.active?"text-[hsl(210,100%,36%)] border-b-2 border-[hsl(210,100%,36%)] pb-0":"text-[hsl(220,14%,35%)] hover:text-[hsl(220,43%,11%)]"}`,children:n.label},n.label))}),y.jsx("div",{className:"hidden md:block",children:y.jsx("a",{href:"#",className:"inline-flex items-center justify-center h-9 px-5 rounded font-body text-sm font-medium bg-[hsl(210,100%,36%)] text-white hover:bg-[hsl(210,100%,28%)] transition-colors duration-150 focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-[hsl(210,100%,36%)]",children:"Contact Sales"})}),y.jsx("button",{className:"md:hidden flex items-center justify-center w-11 h-11 rounded text-[hsl(220,43%,11%)] hover:bg-[hsl(210,20%,98%)] transition-colors duration-150 focus:outline-none focus-visible:ring-2 focus-visible:ring-[hsl(210,100%,36%)]",onClick:()=>t(!0),"aria-label":"Open menu",children:y.jsx(dw,{size:22})})]})}),e&&y.jsxs("div",{className:"fixed inset-0 z-[100] bg-white flex flex-col animate-fade-in",children:[y.jsxs("div",{className:"flex items-center justify-between px-4 h-16 border-b border-[hsl(220,13%,91%)]",children:[y.jsxs("a",{href:"/",className:"flex items-center gap-2",children:[y.jsx(Da,{size:28,className:"text-[hsl(210,100%,36%)]",strokeWidth:2.5}),y.jsx("span",{className:"font-heading font-bold text-[22px] text-[hsl(220,43%,11%)]",style:{letterSpacing:"-0.5px"},children:"ATLAS"})]}),y.jsx("button",{className:"flex items-center justify-center w-11 h-11 rounded text-[hsl(220,43%,11%)] hover:bg-[hsl(210,20%,98%)] transition-colors duration-150 focus:outline-none focus-visible:ring-2 focus-visible:ring-[hsl(210,100%,36%)]",onClick:()=>t(!1),"aria-label":"Close menu",children:y.jsx(mm,{size:22})})]}),y.jsxs("div",{className:"flex flex-col px-4 pt-8 gap-2",children:[pf.map(n=>y.jsx("a",{href:n.href,className:`font-body text-lg font-medium py-3 border-b border-[hsl(220,13%,91%)] transition-colors duration-150 ${n.active?"text-[hsl(210,100%,36%)]":"text-[hsl(220,14%,35%)] hover:text-[hsl(220,43%,11%)]"}`,onClick:()=>t(!1),children:n.label},n.label)),y.jsx("a",{href:"#",className:"mt-6 inline-flex items-center justify-center h-12 px-5 rounded font-body text-base font-medium bg-[hsl(210,100%,36%)] text-white hover:bg-[hsl(210,100%,28%)] transition-colors duration-150",children:"Contact Sales"})]})]})]})},LE=[{title:"Services",links:[{label:"Threat Intelligence",href:"#"},{label:"Risk Assessment",href:"#"},{label:"Incident Response",href:"#"},{label:"Security Training",href:"#"},{label:"Compliance Advisory",href:"#"}]},{title:"Company",links:[{label:"About Atlas",href:"#"},{label:"Leadership",href:"#"},{label:"Careers",href:"#"},{label:"Press",href:"#"},{label:"Contact",href:"#"}]},{title:"Resources",links:[{label:"Insights",href:"#"},{label:"Research Papers",href:"#"},{label:"Case Studies",href:"#"},{label:"Webinars",href:"#"},{label:"Documentation",href:"#"}]},{title:"Trust & Security",links:[{label:"Privacy Policy",href:"#"},{label:"Terms of Service",href:"#"},{label:"Cookie Policy",href:"#"},{label:"Security Disclosure",href:"#"}]}],ME=()=>y.jsx("footer",{className:"bg-[hsl(220,43%,11%)] text-white",children:y.jsxs("div",{className:"max-w-[1200px] mx-auto px-8 pt-16 pb-8",children:[y.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-5 gap-10",children:[y.jsxs("div",{className:"md:col-span-1",children:[y.jsxs("a",{href:"/",className:"flex items-center gap-2 mb-4",children:[y.jsx(Da,{size:28,className:"text-[hsl(210,100%,65%)]",strokeWidth:2.5}),y.jsx("span",{className:"font-heading font-bold text-[22px] text-white",style:{letterSpacing:"-0.5px"},children:"ATLAS"})]}),y.jsx("p",{className:"font-body text-sm text-[hsl(220,14%,65%)] leading-relaxed max-w-[200px]",children:"Enterprise cybersecurity intelligence and advisory for the organizations that can't afford to fail."})]}),LE.map(e=>y.jsxs("div",{className:"md:col-span-1",children:[y.jsx("h3",{className:"font-heading font-600 text-xs tracking-widest uppercase text-[hsl(220,14%,55%)] mb-4",children:e.title}),y.jsx("ul",{className:"space-y-2.5",children:e.links.map(t=>y.jsx("li",{children:y.jsx("a",{href:t.href,className:"font-body text-sm text-[hsl(220,14%,72%)] hover:text-white transition-colors duration-150 focus:outline-none focus-visible:text-white",children:t.label})},t.label))})]},e.title))]}),y.jsxs("div",{className:"mt-16 pt-8 border-t border-[hsl(220,14%,20%)] flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4",children:[y.jsx("p",{className:"font-body text-xs text-[hsl(220,9%,46%)]",children:"© 2026 ATLAS Cybersecurity Intelligence. All rights reserved."}),y.jsxs("div",{className:"flex items-center gap-2 text-[hsl(220,9%,55%)]",children:[y.jsx(fw,{size:14,className:"text-[hsl(142,71%,45%)]"}),y.jsx("span",{className:"font-mono text-xs",children:"SOC 2 Type II Certified · ISO 27001 Compliant"})]})]})]})}),IE=({crumbs:e})=>y.jsx("nav",{"aria-label":"Breadcrumb",className:"py-4",children:y.jsx("ol",{className:"flex flex-wrap items-center gap-1",children:e.map((t,n)=>{const r=n===e.length-1;return y.jsxs("li",{className:"flex items-center gap-1",children:[n>0&&y.jsx(sw,{size:12,className:"text-[hsl(220,9%,62%)] flex-shrink-0"}),r?y.jsx("span",{className:"font-body text-xs font-medium text-[hsl(210,100%,36%)]","aria-current":"page",children:t.label}):y.jsx("a",{href:t.href??"#",className:"font-body text-xs text-[hsl(220,9%,46%)] hover:text-[hsl(220,43%,11%)] transition-colors duration-150 focus:outline-none focus-visible:ring-2 focus-visible:ring-[hsl(210,100%,36%)] rounded",children:t.label})]},n)})})}),zE=()=>{const[e,t]=x.useState(!1),n=()=>{navigator.clipboard.writeText(window.location.href).catch(()=>{}),t(!0),gx.success("Link copied to clipboard"),setTimeout(()=>t(!1),2e3)},r=[{label:"Share on LinkedIn",icon:cw,onClick:()=>window.open(`https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(window.location.href)}`,"_blank")},{label:"Share on X",icon:pw,onClick:()=>window.open(`https://twitter.com/intent/tweet?url=${encodeURIComponent(window.location.href)}&text=${encodeURIComponent("Building a Security Culture: From Policy to Practice | ATLAS Insight")}`,"_blank")}];return y.jsxs("div",{className:"flex items-center gap-3 pt-2",children:[y.jsx("span",{className:"font-body text-xs font-medium text-[hsl(220,9%,46%)] uppercase tracking-widest",children:"Share"}),r.map(({label:o,icon:i,onClick:s})=>y.jsx("button",{onClick:s,"aria-label":o,className:"flex items-center justify-center w-9 h-9 rounded border border-[hsl(220,13%,91%)] text-[hsl(220,14%,35%)] hover:border-[hsl(210,100%,36%)] hover:text-[hsl(210,100%,36%)] transition-all duration-150 focus:outline-none focus-visible:ring-2 focus-visible:ring-[hsl(210,100%,36%)]",children:y.jsx(i,{size:16})},o)),y.jsx("button",{onClick:n,"aria-label":"Copy link",className:`flex items-center justify-center w-9 h-9 rounded border transition-all duration-150 focus:outline-none focus-visible:ring-2 focus-visible:ring-[hsl(210,100%,36%)] ${e?"border-[hsl(142,71%,45%)] text-[hsl(142,71%,45%)]":"border-[hsl(220,13%,91%)] text-[hsl(220,14%,35%)] hover:border-[hsl(210,100%,36%)] hover:text-[hsl(210,100%,36%)]"}`,children:y.jsx(uw,{size:16})})]})},DE="/assets/hero-security-culture-BNMoBpj3.jpg",FE=()=>y.jsxs("header",{className:"pt-8 pb-0",children:[y.jsx("div",{className:"mb-6",children:y.jsx("span",{className:"inline-flex items-center h-6 px-3 rounded-full font-body text-xs font-medium bg-[hsl(214,100%,97%)] text-[hsl(210,100%,36%)] border border-[hsl(210,100%,85%)]",children:"Security Culture"})}),y.jsx("h1",{className:"font-heading font-bold text-[hsl(220,43%,11%)] mb-6 leading-tight",style:{fontSize:"clamp(1.8rem, 4vw, 2.75rem)",letterSpacing:"-0.03em",maxWidth:"800px"},children:"Building a Security Culture: From Policy to Practice"}),y.jsxs("div",{className:"flex flex-wrap items-center gap-x-6 gap-y-2 mb-6",children:[y.jsxs("div",{className:"flex items-center gap-1.5 font-mono text-xs text-[hsl(220,9%,46%)]",children:[y.jsx(hw,{size:13,strokeWidth:1.5}),y.jsx("span",{children:"Atlas Cybersecurity Team"})]}),y.jsxs("div",{className:"flex items-center gap-1.5 font-mono text-xs text-[hsl(220,9%,46%)]",children:[y.jsx(iw,{size:13,strokeWidth:1.5}),y.jsx("span",{children:"March 25, 2026"})]}),y.jsxs("div",{className:"flex items-center gap-1.5 font-mono text-xs text-[hsl(220,9%,46%)]",children:[y.jsx(aw,{size:13,strokeWidth:1.5}),y.jsx("span",{children:"9 min read"})]})]}),y.jsx("p",{className:"font-body text-lg text-[hsl(220,14%,35%)] leading-relaxed mb-8",style:{maxWidth:"680px"},children:"Cybersecurity is not just a technical challenge—it is a cultural one. Atlas explores how enterprises can build a security culture that transforms policy into lived behavior, driving adoption and embedding resilience across every level of the organization."}),y.jsx(zE,{}),y.jsx("div",{className:"mt-10 rounded-lg overflow-hidden border border-[hsl(220,13%,91%)] shadow-sm",children:y.jsx("img",{src:DE,alt:"Abstract visualization of enterprise security culture architecture",className:"w-full object-cover",style:{maxHeight:"460px"},loading:"eager"})})]}),$E=["Security culture is the foundation of sustainable cyber resilience.","Policies alone are insufficient—practices must be embedded into daily operations.","Leadership commitment and employee engagement drive adoption.","Continuous training and awareness reduce human‑factor vulnerabilities.","Atlas outlines a roadmap for transforming policy into practice."],BE=()=>y.jsxs("aside",{className:"my-12 rounded-lg border border-[hsl(220,13%,91%)] bg-[hsl(210,20%,98%)] px-8 py-8","aria-label":"Key takeaways",children:[y.jsx("h2",{className:"font-heading font-bold text-sm uppercase tracking-widest text-[hsl(220,9%,46%)] mb-6",children:"Key Takeaways"}),y.jsx("ul",{className:"space-y-4",children:$E.map((e,t)=>y.jsxs("li",{className:"flex items-start gap-3",children:[y.jsx(lw,{size:18,className:"flex-shrink-0 mt-0.5 text-[hsl(210,100%,36%)]",strokeWidth:2}),y.jsx("span",{className:"font-body text-base text-[hsl(220,43%,11%)] leading-snug",children:e})]},t))})]}),hf=({text:e})=>y.jsx("blockquote",{className:"my-10 mx-0 pl-6 border-l-4 border-[hsl(210,100%,36%)] bg-[hsl(214,100%,97%)] py-5 pr-6 rounded-r-lg",children:y.jsx("p",{className:"font-heading font-medium text-[hsl(210,100%,36%)] leading-relaxed m-0",style:{fontSize:"1.15rem"},children:e})}),UE=()=>y.jsxs("article",{className:"prose-atlas mt-12",children:[y.jsx("h2",{children:"Introduction"}),y.jsx("p",{children:"Cybersecurity is not just a technical challenge—it is a cultural one. Policies provide the framework, but without practice, they remain words on paper. Atlas explores how enterprises can build a security culture that transforms policy into lived behavior, creating organizations that are not merely compliant but genuinely resilient."}),y.jsx(hf,{text:"Human error remains the leading cause of breaches. A strong security culture ensures that employees understand risks, embrace best practices, and act as the first line of defense."}),y.jsx("h2",{children:"Why Security Culture Matters"}),y.jsx("p",{children:"Technology can only go so far. Firewalls, endpoint protection, and detection systems are indispensable—but they cannot substitute for informed, security-conscious employees. Human error remains the leading cause of breaches across industries. A strong security culture ensures that every individual in the organization understands their role in maintaining the enterprise's security posture."}),y.jsx("p",{children:'When security is embedded in culture, it shifts from a burden to a shared responsibility. Employees who understand the "why" behind security policies are far more likely to follow them consistently, report anomalies early, and make sound decisions under pressure.'}),y.jsx("h2",{children:"From Policy to Practice"}),y.jsx("p",{children:"Policies define expectations, but practices embed them into workflows. This is the critical gap many organizations fail to bridge. Well-drafted policies sitting in a document repository do not protect enterprises; practiced, internalized behaviors do."}),y.jsx("p",{children:"Bridging this gap requires three organizational commitments:"}),y.jsxs("ul",{children:[y.jsxs("li",{children:[y.jsx("strong",{children:"Leadership commitment"})," to model secure behavior—when executives and managers visibly follow security protocols, employees understand that compliance is non-negotiable."]}),y.jsxs("li",{children:[y.jsx("strong",{children:"Employee engagement"})," through awareness programs that resonate—generic training modules produce generic results; tailored, role-specific programs drive meaningful behavior change."]}),y.jsxs("li",{children:[y.jsx("strong",{children:"Integration into daily operations"})," so security becomes second nature—from onboarding checklists to daily workflows, security habits must be designed into processes, not appended as afterthoughts."]})]}),y.jsx(hf,{text:"Organizations with strong security cultures experience fewer incidents and faster recovery. Adoption is driven by regular training, gamified awareness campaigns, and clear accountability."}),y.jsx("h2",{children:"Driving Adoption"}),y.jsx("p",{children:"Atlas research shows that organizations with strong security cultures experience fewer incidents and faster recovery times when incidents do occur. But achieving that level of cultural maturity demands deliberate adoption strategies."}),y.jsx("p",{children:"Adoption is driven by:"}),y.jsxs("ul",{children:[y.jsxs("li",{children:[y.jsx("strong",{children:"Regular training"})," tailored to roles—a software engineer's threat landscape differs fundamentally from a finance team member's; training must reflect this."]}),y.jsxs("li",{children:[y.jsx("strong",{children:"Gamified awareness campaigns"})," to sustain interest beyond initial onboarding—simulated phishing exercises, leaderboards, and recognition programs keep security top of mind."]}),y.jsxs("li",{children:[y.jsx("strong",{children:"Clear accountability"})," for compliance at all levels—defined ownership, transparent reporting, and consequences for non-compliance signal that security is treated as a business priority, not a compliance checkbox."]})]}),y.jsx("h2",{children:"Continuous Reinforcement"}),y.jsx("p",{children:"Culture is not static. It requires continuous reinforcement through metrics, feedback loops, and recognition programs. Security teams should track behavioral indicators— phishing click rates, policy acknowledgment completion, incident reporting frequency— alongside traditional threat metrics."}),y.jsx("p",{children:"Celebrating secure behavior is equally important. Recognition programs that highlight employees who report suspicious activity or demonstrate exemplary security hygiene normalize security-conscious behavior and build organizational momentum. Feedback loops ensure that employees see the outcome of their actions, closing the loop between behavior and impact."}),y.jsx("h2",{children:"Conclusion"}),y.jsx("p",{children:"Building a security culture is a journey, not a destination. By moving from policy to practice, enterprises embed resilience into their organizational DNA. The organizations best positioned to withstand tomorrow's threat landscape are not necessarily those with the largest security budgets—they are those where every employee, at every level, understands that security is their responsibility."}),y.jsx("p",{children:"Atlas continues to guide organizations in cultivating cultures where security is not a department, but a shared commitment. The roadmap begins with leadership, is sustained through engagement, and is reinforced through accountability and recognition."})]}),VE=["Incident Response Planning","Zero Trust Architecture","Employee Security Awareness"],WE=()=>y.jsxs("section",{className:"mt-16 mb-4",children:[y.jsx("div",{className:"border-t border-[hsl(220,13%,91%)] mb-12"}),y.jsxs("div",{className:"flex items-start gap-5 p-6 rounded-lg bg-[hsl(210,20%,98%)] border border-[hsl(220,13%,91%)] mb-12",children:[y.jsx("div",{className:"flex-shrink-0 w-14 h-14 rounded-full bg-[hsl(210,100%,36%)] flex items-center justify-center text-white font-heading font-bold text-lg","aria-hidden":"true",children:"AC"}),y.jsxs("div",{children:[y.jsx("p",{className:"font-heading font-semibold text-base text-[hsl(220,43%,11%)] mb-1",children:"Atlas Cybersecurity Team"}),y.jsx("p",{className:"font-mono text-xs text-[hsl(220,9%,46%)] mb-2",children:"Published March 25, 2026 · 9 min read"}),y.jsx("p",{className:"font-body text-sm text-[hsl(220,14%,35%)] leading-relaxed",children:"The Atlas Cybersecurity Team comprises senior analysts, threat researchers, and security architects with decades of combined enterprise advisory experience across critical infrastructure, financial services, and regulated industries."})]})]}),y.jsx("div",{className:"flex flex-wrap gap-2 mb-12",children:VE.map(e=>y.jsx("a",{href:"#",className:"inline-flex items-center h-7 px-3 rounded-full font-body text-xs font-medium border border-[hsl(220,13%,91%)] text-[hsl(220,14%,35%)] hover:border-[hsl(210,100%,36%)] hover:text-[hsl(210,100%,36%)] hover:bg-[hsl(214,100%,97%)] transition-all duration-150 focus:outline-none focus-visible:ring-2 focus-visible:ring-[hsl(210,100%,36%)]",children:e},e))}),y.jsxs("div",{className:"rounded-lg bg-[hsl(210,100%,36%)] px-8 py-10 flex flex-col sm:flex-row items-start sm:items-center justify-between gap-6",children:[y.jsxs("div",{className:"flex items-start gap-4",children:[y.jsx("div",{className:"flex-shrink-0 mt-0.5",children:y.jsx(ow,{size:24,className:"text-[hsl(214,100%,85%)]",strokeWidth:1.5})}),y.jsxs("div",{children:[y.jsx("h3",{className:"font-heading font-bold text-xl text-white mb-1 leading-tight",children:"Explore More Insights"}),y.jsx("p",{className:"font-body text-sm text-[hsl(214,100%,87%)] leading-relaxed max-w-[420px]",children:"Discover the full ATLAS Insight library—threat intelligence briefings, strategic security guides, and enterprise advisory research."})]})]}),y.jsxs("a",{href:"/insights/",className:"flex-shrink-0 inline-flex items-center gap-2 h-11 px-6 rounded font-body text-sm font-medium bg-white text-[hsl(210,100%,36%)] hover:bg-[hsl(214,100%,97%)] transition-colors duration-150 focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-offset-2 focus-visible:ring-offset-[hsl(210,100%,36%)]",children:["View All Insights",y.jsx(rw,{size:16})]})]})]}),HE=[{label:"Home",href:"/"},{label:"Insights",href:"/insights/"},{label:"Building a Security Culture: From Policy to Practice"}],QE=()=>y.jsxs("div",{className:"min-h-screen flex flex-col bg-white",children:[y.jsx(_E,{}),y.jsxs("main",{className:"flex-1 w-full",children:[y.jsx("div",{className:"border-b border-[hsl(220,13%,91%)] bg-white",children:y.jsx("div",{className:"max-w-[800px] mx-auto px-4 sm:px-6 lg:px-8",children:y.jsx(IE,{crumbs:HE})})}),y.jsxs("div",{className:"max-w-[800px] mx-auto px-4 sm:px-6 lg:px-8 pb-24",children:[y.jsx(FE,{}),y.jsx(BE,{}),y.jsx(UE,{}),y.jsx(WE,{})]})]}),y.jsx(ME,{})]}),KE=()=>{const e=yg();return x.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),y.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-100",children:y.jsxs("div",{className:"text-center",children:[y.jsx("h1",{className:"text-4xl font-bold mb-4",children:"404"}),y.jsx("p",{className:"text-xl text-gray-600 mb-4",children:"Oops! Page not found"}),y.jsx("a",{href:"/",className:"text-blue-500 hover:text-blue-700 underline",children:"Return to Home"})]})})},YE=new VS,GE=()=>y.jsx(HS,{client:YE,children:y.jsxs(hS,{children:[y.jsx(Xw,{}),y.jsx(Rx,{}),y.jsx(AE,{children:y.jsxs(RE,{children:[y.jsx(Xa,{path:"/",element:y.jsx(QE,{})}),y.jsx(Xa,{path:"*",element:y.jsx(KE,{})})]})})]})});Fh(document.getElementById("root")).render(y.jsx(GE,{}));